iMaxRecent should be an int, not a u32 (the latter writes as hex to .ini)

This commit is contained in:
Henrik Rydgard 2013-05-19 16:40:01 +02:00
parent d9ed61c04a
commit b3084ab685
2 changed files with 4 additions and 1 deletions

View File

@ -64,6 +64,9 @@ void Config::Load(const char *iniFileName)
general->Get("Language", &languageIni, "en_US");
general->Get("NumWorkerThreads", &iNumWorkerThreads, cpu_info.num_cores);
general->Get("MaxRecent", &iMaxRecent, 12);
// Fix issue from switching from uint (hex in .ini) to int (dec)
if (iMaxRecent == 0)
iMaxRecent = 12;
// "default" means let emulator decide, "" means disable.
general->Get("ReportHost", &sReportHost, "default");

View File

@ -79,7 +79,7 @@ public:
int iTexScalingType; // 0 = xBRZ, 1 = Hybrid
bool bTexDeposterize;
int iFpsLimit;
u32 iMaxRecent;
int iMaxRecent;
// Sound
bool bEnableSound;