mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 21:47:42 +00:00
Update Specter
Print CPU info
This commit is contained in:
@@ -9,6 +9,8 @@
|
|||||||
|
|
||||||
namespace URDE
|
namespace URDE
|
||||||
{
|
{
|
||||||
|
LogVisor::LogModule Log{"URDE"};
|
||||||
|
|
||||||
struct Application : boo::IApplicationCallback
|
struct Application : boo::IApplicationCallback
|
||||||
{
|
{
|
||||||
HECL::Runtime::FileStoreManager m_fileMgr;
|
HECL::Runtime::FileStoreManager m_fileMgr;
|
||||||
@@ -24,8 +26,7 @@ struct Application : boo::IApplicationCallback
|
|||||||
|
|
||||||
int appMain(boo::IApplication* app)
|
int appMain(boo::IApplication* app)
|
||||||
{
|
{
|
||||||
Zeus::detectCPU();
|
initialize(app);
|
||||||
pshag::CElementGen::Initialize();
|
|
||||||
m_viewManager.init(app);
|
m_viewManager.init(app);
|
||||||
while (m_running)
|
while (m_running)
|
||||||
{
|
{
|
||||||
@@ -44,6 +45,20 @@ struct Application : boo::IApplicationCallback
|
|||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void initialize(boo::IApplication* app)
|
||||||
|
{
|
||||||
|
Zeus::detectCPU();
|
||||||
|
pshag::CElementGen::Initialize();
|
||||||
|
|
||||||
|
const Zeus::CPUInfo& cpuInf = Zeus::cpuFeatures();
|
||||||
|
HECL::SystemString cpuName{reinterpret_cast<const char*>(cpuInf.cpuBrand)};
|
||||||
|
HECL::SystemStringView cpuNameView{cpuName};
|
||||||
|
HECL::SystemString cpuVendor{reinterpret_cast<const char*>(cpuInf.cpuVendor)};
|
||||||
|
HECL::SystemStringView cpuVendorView{cpuVendor};
|
||||||
|
Log.report(LogVisor::Info, _S("CPU Name: %s"), cpuNameView.sys_str().c_str());
|
||||||
|
Log.report(LogVisor::Info, _S("CPU Vendor: %s"), cpuVendorView.sys_str().c_str());
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Submodule libSpecter updated: ca6d7ff93b...7d99243703
Reference in New Issue
Block a user