aboutsummaryrefslogtreecommitdiff
path: root/src/Savestate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Savestate.h')
-rw-r--r--src/Savestate.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Savestate.h b/src/Savestate.h
index e217bc1..6ca3b51 100644
--- a/src/Savestate.h
+++ b/src/Savestate.h
@@ -48,6 +48,13 @@ public:
void VarArray(void* data, u32 len);
+ bool IsAtleastVersion(u32 major, u32 minor)
+ {
+ if (VersionMajor > major) return true;
+ if (VersionMajor == major && VersionMinor >= minor) return true;
+ return false;
+ }
+
private:
FILE* file;
};