- add range checks for cheats database mode when it load from config file;;
This commit is contained in:
mtabachenko 2013-07-06 14:34:36 +00:00
parent 6c3b7c1762
commit 0e7a62002c
1 changed files with 5 additions and 0 deletions

View File

@ -211,6 +211,11 @@ public:
savelastromvisit = GetPrivateProfileBool(SECTION, LASTVISITKEY, true, IniName); savelastromvisit = GetPrivateProfileBool(SECTION, LASTVISITKEY, true, IniName);
currentimageformat = (ImageFormat)GetPrivateProfileInt(SECTION, DEFAULTFORMATKEY, PNG, IniName); currentimageformat = (ImageFormat)GetPrivateProfileInt(SECTION, DEFAULTFORMATKEY, PNG, IniName);
r4Format = (R4Format)GetPrivateProfileInt(SECTION, R4FORMATKEY, R4_CHEAT_DAT, IniName); r4Format = (R4Format)GetPrivateProfileInt(SECTION, R4FORMATKEY, R4_CHEAT_DAT, IniName);
if ((r4Format != R4_CHEAT_DAT) && (r4Format != R4_USRCHEAT_DAT))
{
r4Format = R4_USRCHEAT_DAT;
WritePrivateProfileInt(SECTION, R4FORMATKEY, r4Format, IniName);
}
#endif #endif
/* /*
needsSaving = GetPrivateProfileInt(SECTION, NEEDSSAVINGKEY, TRUE, IniName); needsSaving = GetPrivateProfileInt(SECTION, NEEDSSAVINGKEY, TRUE, IniName);