mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 02:47:02 +02:00
19 lines
338 B
C++
19 lines
338 B
C++
#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
|