mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-28 01:49:42 -06:00
prevent loading savestates that are too recent
This commit is contained in:
@ -110,7 +110,12 @@ Savestate::Savestate(const char* filename, bool save)
|
||||
}
|
||||
|
||||
fread(&VersionMinor, 2, 1, file);
|
||||
// TODO: handle it???
|
||||
if (VersionMinor > SAVESTATE_MINOR)
|
||||
{
|
||||
printf("savestate: state from the future, %d > %d\n", VersionMinor, SAVESTATE_MINOR);
|
||||
Error = true;
|
||||
return;
|
||||
}
|
||||
|
||||
buf = 0;
|
||||
fread(&buf, 4, 1, file);
|
||||
|
Reference in New Issue
Block a user