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:
Megamouse
2021-07-28 23:43:11 +02:00
parent bb9c063e80
commit 2efc4812d7
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -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;
+1 -1
View File
@@ -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"));