mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-25 07:13:34 +01:00
Don't savestate replacement funcs.
This makes it so we can reorder them as we like, which is nicer, and also makes sure there won't be weird compatibility problems or etc.
This commit is contained in:
1 parent
8dcc09c9e1
commit
0de41cd028
3 files changed
+31
-3
No files matched your search
+6
-3
@@ -33,6 +33,7 @@
|
||||
#include "Core/FileSystems/MetaFileSystem.h"
|
||||
#include "Core/ELF/ParamSFO.h"
|
||||
#include "Core/HLE/HLE.h"
|
||||
#include "Core/HLE/ReplaceTables.h"
|
||||
#include "Core/HLE/sceKernel.h"
|
||||
#include "Core/MemMap.h"
|
||||
#include "Core/MIPS/MIPS.h"
|
||||
@@ -226,10 +227,12 @@ namespace SaveState
|
||||
// Memory is a bit tricky when jit is enabled, since there's emuhacks in it.
|
||||
if (MIPSComp::jit && p.mode == p.MODE_WRITE)
|
||||
{
|
||||
auto blocks = MIPSComp::jit->GetBlockCache();
|
||||
auto saved = blocks->SaveAndClearEmuHackOps();
|
||||
auto blockCache = MIPSComp::jit->GetBlockCache();
|
||||
auto savedReplacements = SaveAndClearReplacements();
|
||||
auto savedBlocks = blockCache->SaveAndClearEmuHackOps();
|
||||
Memory::DoState(p);
|
||||
blocks->RestoreSavedEmuHackOps(saved);
|
||||
blockCache->RestoreSavedEmuHackOps(savedBlocks);
|
||||
RestoreSavedReplacements(savedReplacements);
|
||||
}
|
||||
else
|
||||
Memory::DoState(p);
|
||||
|
||||
Reference in new issue
Block a user