mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 02:08:49 +12:00
Qt/System: reset boot path after directory scan
This should fix the "Play" Button after batch compiling PPU caches. Previously you would start the last compiled game, which was kinda weird.
This commit is contained in:
parent
bb9c063e80
commit
2efc4812d7
2 changed files with 6 additions and 1 deletions
|
@ -801,6 +801,8 @@ game_boot_result Emulator::Load(const std::string& title_id, bool add_only, bool
|
|||
|
||||
if (IsStopped())
|
||||
{
|
||||
m_path = m_path_old; // Reset m_path to fix boot from gui
|
||||
GetCallbacks().on_stop(); // Call on_stop to refresh gui
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -812,6 +814,9 @@ game_boot_result Emulator::Load(const std::string& title_id, bool add_only, bool
|
|||
Emu.SetForceBoot(true);
|
||||
Emu.Stop();
|
||||
});
|
||||
|
||||
m_path = m_path_old; // Reset m_path to fix boot from gui
|
||||
GetCallbacks().on_stop(); // Call on_stop to refresh gui
|
||||
});
|
||||
|
||||
return game_boot_result::no_errors;
|
||||
|
|
|
@ -1566,7 +1566,7 @@ void main_window::OnEmuStop()
|
|||
|
||||
EnableMenus(false);
|
||||
|
||||
if (Emu.GetBoot().empty())
|
||||
if (title.isEmpty())
|
||||
{
|
||||
ui->toolbar_start->setIcon(m_icon_play);
|
||||
ui->toolbar_start->setText(tr("Play"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue