mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-05 21:38:17 +01:00
pref version check, 2.0.2 finalized
This commit is contained in:
parent
1e5acf1cf6
commit
e9f7c8dbd1
@ -247,6 +247,15 @@ decodePrefsData (int method)
|
||||
else // version # not found, must be invalid
|
||||
return false;
|
||||
|
||||
int verMajor = (int)version[13];
|
||||
int verMinor = (int)version[15];
|
||||
int verPoint = (int)version[17];
|
||||
|
||||
if(verPoint < 2 && verMajor == 2) // less than version 2.0.2
|
||||
return false; // reset settings
|
||||
else if(verMajor > 2 || verMinor > 0 || verPoint > 2) // some future version
|
||||
return false; // reset settings
|
||||
|
||||
// File Settings
|
||||
|
||||
loadXMLSettingInt(&GCSettings.AutoLoad, "AutoLoad");
|
||||
|
Loading…
Reference in New Issue
Block a user