From e9f7c8dbd1ed2dbd87073f5f38254d0c92aee585 Mon Sep 17 00:00:00 2001 From: dborth Date: Fri, 19 Sep 2008 21:24:31 +0000 Subject: [PATCH] pref version check, 2.0.2 finalized --- source/ngc/preferences.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/ngc/preferences.c b/source/ngc/preferences.c index e990e7d..559080f 100644 --- a/source/ngc/preferences.c +++ b/source/ngc/preferences.c @@ -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");