From 88b80b7a2c369dcce7a419ef9a61be144a97679c Mon Sep 17 00:00:00 2001 From: emiyl Date: Sat, 18 Apr 2026 16:33:48 +0100 Subject: [PATCH] Log CPU and macOS version + build --- src/Cafe/CafeSystem.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Cafe/CafeSystem.cpp b/src/Cafe/CafeSystem.cpp index f016773c..95e87317 100644 --- a/src/Cafe/CafeSystem.cpp +++ b/src/Cafe/CafeSystem.cpp @@ -467,7 +467,18 @@ namespace CafeSystem void logCPUAndMemoryInfo() { + #if BOOST_OS_MACOS + std::string cpuName; + size_t cpu_len = 0; + if (sysctlbyname("machdep.cpu.brand_string", NULL, &cpu_len, NULL, 0) == 0 && cpu_len > 1) + { + cpuName.resize(cpu_len); + if (sysctlbyname("machdep.cpu.brand_string", cpuName.data(), &cpu_len, NULL, 0) != 0) + cpuName.clear(); + } + #else std::string cpuName = g_CPUFeatures.GetCPUName(); + #endif if (!cpuName.empty()) cemuLog_log(LogType::Force, "CPU: {}", cpuName); #if BOOST_OS_WINDOWS