mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-28 00:12:40 +00:00
Initial commit
This commit is contained in:
commit
147188b143
427 files changed
+205923
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#include "common/systemInfo.h"
|
||||
|
||||
#include "common/assert.h"
|
||||
#include "cpuinfo.h"
|
||||
|
||||
namespace Common {
|
||||
|
||||
SystemInfo GetSystemInfo() {
|
||||
static const bool initialized = cpuinfo_initialize();
|
||||
EXIT_IF(!initialized);
|
||||
|
||||
const auto* package = cpuinfo_get_package(0);
|
||||
EXIT_IF(package == nullptr);
|
||||
|
||||
return {package->name};
|
||||
}
|
||||
|
||||
} // namespace Common
|
||||
Reference in new issue
Block a user