MTVU: Add new savestate variables, bump savestate version

This commit is contained in:
refractionpcsx2 committed 2020-12-24 09:03:45 +00:00
1 parent 3f4bb44310
commit 20695d6b15
2 files changed
+17 -1

No files matched your search

+16
View File
@@ -57,6 +57,22 @@ void SaveStateBase::mtvuFreeze()
unsigned int v = vu1Thread.vuCycles[i].load();
Freeze(v);
}
u32 gsInterrupts;
u64 gsSignals;
gsInterrupts = vu1Thread.gsToClear.load();
Freeze(gsInterrupts);
vu1Thread.gsToClear.store(gsInterrupts);
gsInterrupts = vu1Thread.gsInterrupts.load();
Freeze(gsInterrupts);
vu1Thread.gsInterrupts.store(gsInterrupts);
gsSignals = vu1Thread.gsSignal.load();
Freeze(gsSignals);
vu1Thread.gsSignal.store(gsSignals);
gsSignals = vu1Thread.gsLabel.load();
Freeze(gsSignals);
vu1Thread.gsLabel.store(gsSignals);
Freeze(vu1Thread.vuCycleIdx);
}
+1 -1
View File
@@ -24,7 +24,7 @@
// the lower 16 bit value. IF the change is breaking of all compatibility with old
// states, increment the upper 16 bit value, and clear the lower 16 bits to 0.
static const u32 g_SaveVersion = (0x9A13 << 16) | 0x0000;
static const u32 g_SaveVersion = (0x9A14 << 16) | 0x0000;
// this function is meant to be used in the place of GSfreeze, and provides a safe layer
// between the GS saving function and the MTGS's needs. :)