Bump maxrecent default to 60. Don't show CPU name if we don't have one.

See #14707 and #10620
This commit is contained in:
Henrik Rydgård committed 2021-08-12 00:02:24 +02:00
1 parent aa3daca293
commit 22c180ef6f
2 files changed
+8 -3

No files matched your search

+2 -2
View File
@@ -1300,12 +1300,12 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
LogManager::GetInstance()->LoadConfig(log, debugDefaults);
Section *recent = iniFile.GetOrCreateSection("Recent");
recent->Get("MaxRecent", &iMaxRecent, 30);
recent->Get("MaxRecent", &iMaxRecent, 60);
// Fix issue from switching from uint (hex in .ini) to int (dec)
// -1 is okay, though. We'll just ignore recent stuff if it is.
if (iMaxRecent == 0)
iMaxRecent = 30;
iMaxRecent = 60;
if (iMaxRecent > 0) {
recentIsos.clear();