From 88381209b37c3a14bd52e9b0466f7f4339036808 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 21 Sep 2024 21:34:15 +1000 Subject: [PATCH] System: Fix crash when disabling runahead --- src/core/system.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/system.cpp b/src/core/system.cpp index 79db27c31..f03279046 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -4732,6 +4732,9 @@ void System::UpdateMemorySaveStateSettings() s_runahead_replay_pending = false; if (s_runahead_frames > 0) 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)