Changeset View
Changeset View
Standalone View
Standalone View
source/ps/GameSetup/HWDetect.cpp
Show First 20 Lines • Show All 227 Lines • ▼ Show 20 Lines | #if OS_LINUX | ||||
{ | { | ||||
std::string str((std::istreambuf_iterator<char>(ifs)), std::istreambuf_iterator<char>()); | std::string str((std::istreambuf_iterator<char>(ifs)), std::istreambuf_iterator<char>()); | ||||
scriptInterface.SetProperty(settings, "linux_release", str); | scriptInterface.SetProperty(settings, "linux_release", str); | ||||
} | } | ||||
} | } | ||||
#endif | #endif | ||||
scriptInterface.SetProperty(settings, "cpu_identifier", std::string(cpu_IdentifierString())); | scriptInterface.SetProperty(settings, "cpu_identifier", std::string(cpu_IdentifierString())); | ||||
scriptInterface.SetProperty(settings, "cpu_frequency", os_cpu_ClockFrequency()); | |||||
scriptInterface.SetProperty(settings, "cpu_pagesize", (u32)os_cpu_PageSize()); | scriptInterface.SetProperty(settings, "cpu_pagesize", (u32)os_cpu_PageSize()); | ||||
scriptInterface.SetProperty(settings, "cpu_largepagesize", (u32)os_cpu_LargePageSize()); | scriptInterface.SetProperty(settings, "cpu_largepagesize", (u32)os_cpu_LargePageSize()); | ||||
scriptInterface.SetProperty(settings, "cpu_numprocs", (u32)os_cpu_NumProcessors()); | scriptInterface.SetProperty(settings, "cpu_numprocs", (u32)os_cpu_NumProcessors()); | ||||
#if ARCH_X86_X64 | #if ARCH_X86_X64 | ||||
scriptInterface.SetProperty(settings, "cpu_numpackages", (u32)topology::NumPackages()); | scriptInterface.SetProperty(settings, "cpu_numpackages", (u32)topology::NumPackages()); | ||||
scriptInterface.SetProperty(settings, "cpu_coresperpackage", (u32)topology::CoresPerPackage()); | scriptInterface.SetProperty(settings, "cpu_coresperpackage", (u32)topology::CoresPerPackage()); | ||||
scriptInterface.SetProperty(settings, "cpu_logicalpercore", (u32)topology::LogicalPerCore()); | scriptInterface.SetProperty(settings, "cpu_logicalpercore", (u32)topology::LogicalPerCore()); | ||||
scriptInterface.SetProperty(settings, "cpu_numcaches", (u32)topology::NumCaches()); | scriptInterface.SetProperty(settings, "cpu_numcaches", (u32)topology::NumCaches()); | ||||
▲ Show 20 Lines • Show All 476 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator