mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 10:56:58 +02:00
Initial commit
This commit is contained in:
@@ -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