mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Core: Revert save state breakage.
Any save states created in the interim will not be backwards compatible to any HLE changes.
This commit is contained in:
1 parent
ecb7f93418
commit
c243f39d94
1 file changed
+2
-1
+2
-1
@@ -367,6 +367,8 @@ namespace SaveState
|
||||
}
|
||||
|
||||
// Memory is a bit tricky when jit is enabled, since there's emuhacks in it.
|
||||
// These must be saved before copying out memory and restored after.
|
||||
auto savedReplacements = SaveAndClearReplacements();
|
||||
if (MIPSComp::jit && p.mode == p.MODE_WRITE) {
|
||||
std::lock_guard<std::recursive_mutex> guard(MIPSComp::jitLock);
|
||||
if (MIPSComp::jit) {
|
||||
@@ -388,7 +390,6 @@ namespace SaveState
|
||||
// Don't bother restoring if reading, we'll deal with that in KernelModuleDoState.
|
||||
// In theory, different functions might have been runtime loaded in the state.
|
||||
if (p.mode != p.MODE_READ) {
|
||||
auto savedReplacements = SaveAndClearReplacements();
|
||||
RestoreSavedReplacements(savedReplacements);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user