mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-07 14:28:18 +01:00
pref version check fix
This commit is contained in:
parent
1a2018def6
commit
76a7123193
@ -247,13 +247,15 @@ decodePrefsData (int method)
|
|||||||
else // version # not found, must be invalid
|
else // version # not found, must be invalid
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
int verMajor = (int)version[13];
|
// this code assumes version in format X.X.X
|
||||||
int verMinor = (int)version[15];
|
// XX.X.X, X.XX.X, or X.X.XX will NOT work
|
||||||
int verPoint = (int)version[17];
|
char verMajor = version[13];
|
||||||
|
char verMinor = version[15];
|
||||||
|
char verPoint = version[17];
|
||||||
|
|
||||||
if(verPoint < 2 && verMajor == 2) // less than version 2.0.2
|
if(verPoint < '2' && verMajor == '2') // less than version 2.0.2
|
||||||
return false; // reset settings
|
return false; // reset settings
|
||||||
else if(verMajor > 2 || verMinor > 0 || verPoint > 2) // some future version
|
else if(verMajor > '2' || verMinor > '0' || verPoint > '2') // some future version
|
||||||
return false; // reset settings
|
return false; // reset settings
|
||||||
|
|
||||||
// File Settings
|
// File Settings
|
||||||
|
Loading…
Reference in New Issue
Block a user