Savestates: Auto-relaunch savestate when suspen mode is off

This commit is contained in:
Eladash 2022-10-23 08:55:03 +03:00 committed by Megamouse
parent f16c9cd3c6
commit cc6112cbc4

View file

@ -2550,6 +2550,13 @@ std::shared_ptr<utils::serial> Emulator::Kill(bool allow_autoexit, bool savestat
} }
ar.set_reading_state(); ar.set_reading_state();
if (!g_cfg.savestate.suspend_emu)
{
to_ar.reset();
Restart();
return to_ar;
}
} }
// Boot arg cleanup (preserved in the case restarting) // Boot arg cleanup (preserved in the case restarting)