Hotkeys: Fix crash when toggling PGXP

This commit is contained in:
Stenzek 2023-09-17 00:55:30 +10:00
parent d7bccfe9a4
commit 57cdb180c6
1 changed files with 3 additions and 0 deletions

View File

@ -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();
}
})