mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-04-26 04:45:18 -06:00
Log CPU and macOS version + build
This commit is contained in:
parent
e41d63ffba
commit
88b80b7a2c
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user