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

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

No files matched your search

+3
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");