From 22c180ef6ff53e713f87685909cc6065f50dcb96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 9 Aug 2021 09:22:55 +0200 Subject: [PATCH] Bump maxrecent default to 60. Don't show CPU name if we don't have one. See #14707 and #10620 --- Core/Config.cpp | 4 ++-- UI/DevScreens.cpp | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index a378ceada6..9835597fae 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -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(); diff --git a/UI/DevScreens.cpp b/UI/DevScreens.cpp index 0342ee1d67..8c366fce52 100644 --- a/UI/DevScreens.cpp +++ b/UI/DevScreens.cpp @@ -480,7 +480,12 @@ void SystemInfoScreen::CreateViews() { #endif deviceSpecs->Add(new ItemHeader(si->T("CPU Information"))); - deviceSpecs->Add(new InfoItem(si->T("CPU Name", "Name"), cpu_info.brand_string)); + + // Don't bother showing the CPU name if we don't have one. + if (cpu_info.brand_string != "Unknown") { + deviceSpecs->Add(new InfoItem(si->T("CPU Name", "Name"), cpu_info.brand_string)); + } + int totalThreads = cpu_info.num_cores * cpu_info.logical_cpu_count; std::string cores = StringFromFormat(si->T("%d (%d per core, %d cores)"), totalThreads, cpu_info.logical_cpu_count, cpu_info.num_cores); deviceSpecs->Add(new InfoItem(si->T("Threads"), cores));