From 57cdb180c61858d5ee0846ff88a57e338f6fbec4 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 17 Sep 2023 00:55:30 +1000 Subject: [PATCH] Hotkeys: Fix crash when toggling PGXP --- src/core/hotkeys.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/hotkeys.cpp b/src/core/hotkeys.cpp index f25bbbe16..1f74f4380 100644 --- a/src/core/hotkeys.cpp +++ b/src/core/hotkeys.cpp @@ -329,6 +329,9 @@ DEFINE_HOTKEY("TogglePGXP", TRANSLATE_NOOP("Hotkeys", "Graphics"), TRANSLATE_NOO // we need to recompile all blocks if pgxp is toggled on/off if (g_settings.IsUsingCodeCache()) CPU::CodeCache::Flush(); + + // need to swap interpreters + System::InterruptExecution(); } })