Update Specter

Print CPU info
This commit is contained in:
Phillip Stephens 2016-02-15 09:35:20 -08:00
parent 1541b0ab2e
commit e431d38a76
2 changed files with 18 additions and 3 deletions

View File

@ -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());
}
}; };
} }

@ -1 +1 @@
Subproject commit ca6d7ff93bb8cf951d47752c0892258330bf5caa Subproject commit 7d99243703f8a841a97b006d2bd8b28974865649