Keep game window open when loading the last savestate

This commit is contained in:
Megamouse 2025-01-04 16:14:09 +01:00
parent cc7e7300ce
commit d5470d92ec
7 changed files with 17 additions and 4 deletions

View file

@ -2912,10 +2912,13 @@ u64 get_sysutil_cb_manager_read_count();
void qt_events_aware_op(int repeat_duration_ms, std::function<bool()> wrapped_op);
void Emulator::GracefulShutdown(bool allow_autoexit, bool async_op, bool savestate)
void Emulator::GracefulShutdown(bool allow_autoexit, bool async_op, bool savestate, bool continuous_mode)
{
// Make sure we close the game window
Emu.SetContinuousMode(false);
if (!continuous_mode)
{
Emu.SetContinuousMode(false);
}
// Ensure no game has booted inbetween
const auto guard = Emu.MakeEmulationStateGuard();