mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-24 08:39:51 +00:00
Crashfix in savestate (hmmmm...)
This commit is contained in:
parent
2cbfb192c4
commit
cb251ea93f
@ -234,9 +234,14 @@ namespace SaveState
|
||||
if (MIPSComp::jit && p.mode == p.MODE_WRITE)
|
||||
{
|
||||
auto blockCache = MIPSComp::jit->GetBlockCache();
|
||||
auto savedBlocks = blockCache->SaveAndClearEmuHackOps();
|
||||
std::vector<u32> savedBlocks;
|
||||
if (blockCache) {
|
||||
savedBlocks = blockCache->SaveAndClearEmuHackOps();
|
||||
}
|
||||
Memory::DoState(p);
|
||||
blockCache->RestoreSavedEmuHackOps(savedBlocks);
|
||||
if (blockCache) {
|
||||
blockCache->RestoreSavedEmuHackOps(savedBlocks);
|
||||
}
|
||||
}
|
||||
else
|
||||
Memory::DoState(p);
|
||||
|
Loading…
Reference in New Issue
Block a user