Counters: Add Vsync information to savestates + bump savestate version.

I honestly don't know *why* this wasn't in there already....
This commit is contained in:
refractionpcsx2 2021-02-11 21:34:51 +00:00
parent 02bf212789
commit efe0ceb588
2 changed files with 4 additions and 1 deletions

View File

@ -1043,6 +1043,9 @@ void SaveStateBase::rcntFreeze()
Freeze( vsyncCounter );
Freeze( nextCounter );
Freeze( nextsCounter );
Freeze( vSyncInfo );
Freeze( gsVideoMode );
Freeze( gsIsInterlaced );
if( IsLoading() )
{

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 = (0x9A1B << 16) | 0x0000;
static const u32 g_SaveVersion = (0x9A1C << 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. :)