1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-23 03:02:53 +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:
Megamouse 2021-07-28 23:43:11 +02:00
parent bb9c063e80
commit 2efc4812d7
2 changed files with 6 additions and 1 deletions

View File

@ -801,6 +801,8 @@ game_boot_result Emulator::Load(const std::string& title_id, bool add_only, bool
if (IsStopped()) 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; return;
} }
@ -812,6 +814,9 @@ game_boot_result Emulator::Load(const std::string& title_id, bool add_only, bool
Emu.SetForceBoot(true); Emu.SetForceBoot(true);
Emu.Stop(); 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; return game_boot_result::no_errors;

View File

@ -1566,7 +1566,7 @@ void main_window::OnEmuStop()
EnableMenus(false); EnableMenus(false);
if (Emu.GetBoot().empty()) if (title.isEmpty())
{ {
ui->toolbar_start->setIcon(m_icon_play); ui->toolbar_start->setIcon(m_icon_play);
ui->toolbar_start->setText(tr("Play")); ui->toolbar_start->setText(tr("Play"));