mirror of https://github.com/PCSX2/pcsx2.git
MTVU: Add new savestate variables, bump savestate version
This commit is contained in:
parent
3f4bb44310
commit
20695d6b15
|
@ -57,6 +57,22 @@ void SaveStateBase::mtvuFreeze()
|
||||||
unsigned int v = vu1Thread.vuCycles[i].load();
|
unsigned int v = vu1Thread.vuCycles[i].load();
|
||||||
Freeze(v);
|
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);
|
Freeze(vu1Thread.vuCycleIdx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
// the lower 16 bit value. IF the change is breaking of all compatibility with old
|
// 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.
|
// 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
|
// 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. :)
|
// between the GS saving function and the MTGS's needs. :)
|
||||||
|
|
Loading…
Reference in New Issue