Clear the JIT cache correctly when exiting the cheat dialog.

This commit is contained in:
Henrik Rydgård 2013-10-23 17:23:05 +02:00
parent 2b278d4c13
commit a588b46321

View File

@ -103,8 +103,7 @@ UI::EventReturn CwCheatScreen::OnBack(UI::EventParams &params) {
os.close();
g_Config.bReloadCheats = true;
if (MIPSComp::jit) {
auto blocks = MIPSComp::jit->GetBlockCache();
blocks->Clear();
MIPSComp::jit->ClearCache();
}
return UI::EVENT_DONE;
}