mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
jit-ir: Restore emuhacks before saving state.
Let's just ask jit to do this, not its block cache directly.
This commit is contained in:
1 parent
b74df87db0
commit
e37777648e
9 files changed
+73
-9
No files matched your search
+2
-7
@@ -233,15 +233,10 @@ namespace SaveState
|
||||
auto savedReplacements = SaveAndClearReplacements();
|
||||
if (MIPSComp::jit && p.mode == p.MODE_WRITE)
|
||||
{
|
||||
auto blockCache = MIPSComp::jit->GetBlockCache();
|
||||
std::vector<u32> savedBlocks;
|
||||
if (blockCache) {
|
||||
savedBlocks = blockCache->SaveAndClearEmuHackOps();
|
||||
}
|
||||
savedBlocks = MIPSComp::jit->SaveAndClearEmuHackOps();
|
||||
Memory::DoState(p);
|
||||
if (blockCache) {
|
||||
blockCache->RestoreSavedEmuHackOps(savedBlocks);
|
||||
}
|
||||
MIPSComp::jit->RestoreSavedEmuHackOps(savedBlocks);
|
||||
}
|
||||
else
|
||||
Memory::DoState(p);
|
||||
|
||||
Reference in new issue
Block a user