Hotkeys: Fix toggle CPU PGXP with Interpreter

This commit is contained in:
Stenzek
2023-12-06 19:54:45 +10:00
parent 591a2228d6
commit e835f118b7
2 changed files with 111 additions and 122 deletions

View File

@ -438,6 +438,9 @@ DEFINE_HOTKEY("TogglePGXPCPU", TRANSLATE_NOOP("Hotkeys", "Graphics"), TRANSLATE_
// we need to recompile all blocks if pgxp is toggled on/off
CPU::CodeCache::Reset();
// need to swap interpreters
System::InterruptExecution();
}
})