System: Fix crash when disabling runahead

This commit is contained in:
Stenzek 2024-09-21 21:34:15 +10:00
parent 1754ecf4f9
commit 88381209b3
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -4732,6 +4732,9 @@ void System::UpdateMemorySaveStateSettings()
s_runahead_replay_pending = false; s_runahead_replay_pending = false;
if (s_runahead_frames > 0) if (s_runahead_frames > 0)
INFO_LOG("Runahead is active with {} frames", s_runahead_frames); INFO_LOG("Runahead is active with {} frames", s_runahead_frames);
// reenter execution loop, don't want to try to save a state now if runahead was turned off
InterruptExecution();
} }
bool System::LoadMemoryState(const MemorySaveState& mss) bool System::LoadMemoryState(const MemorySaveState& mss)