From 1f60c3c07bf98062563d5b3cf0da22e2860ecaa9 Mon Sep 17 00:00:00 2001 From: The Dax Date: Sun, 25 Aug 2013 16:24:09 -0400 Subject: [PATCH] Revert hard-coding max recents to 30. --- Core/Config.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index 5912f3f77d..9d53d45ad8 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -61,15 +61,16 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) general->Get("Language", &languageIni, "en_US"); general->Get("NumWorkerThreads", &iNumWorkerThreads, cpu_info.num_cores); general->Get("EnableCheats", &bEnableCheats, false); + general->Get("MaxRecent", &iMaxRecent, 30); general->Get("ScreenshotsAsPNG", &bScreenshotsAsPNG, false); general->Get("StateSlot", &iCurrentStateSlot, 0); general->Get("GridView1", &bGridView1, true); general->Get("GridView2", &bGridView2, true); general->Get("GridView3", &bGridView3, true); - // No reason to really make this configurable when - // the list can scroll in NewUI. - iMaxRecent = 30; + // Fix issue from switching from uint (hex in .ini) to int (dec) + if (iMaxRecent == 0) + iMaxRecent = 30; // "default" means let emulator decide, "" means disable. general->Get("ReportingHost", &sReportHost, "default");