mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 18:53:28 +01: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
@ -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…
Reference in New Issue
Block a user