Log architecture
This commit is contained in:
+5
-1
@@ -692,6 +692,10 @@ int run_rpcs3(int argc, char** argv)
|
|||||||
logs::stored_message ver{sys_log.always()};
|
logs::stored_message ver{sys_log.always()};
|
||||||
ver.text = fmt::format("RPCS3 v%s", rpcs3::get_verbose_version());
|
ver.text = fmt::format("RPCS3 v%s", rpcs3::get_verbose_version());
|
||||||
|
|
||||||
|
// Write Architecture
|
||||||
|
logs::stored_message arch{sys_log.always()};
|
||||||
|
arch.text = fmt::format("Architecture: %s", utils::get_architecture());
|
||||||
|
|
||||||
// Write System information
|
// Write System information
|
||||||
logs::stored_message sys{sys_log.always()};
|
logs::stored_message sys{sys_log.always()};
|
||||||
sys.text = utils::get_system_info();
|
sys.text = utils::get_system_info();
|
||||||
@@ -708,7 +712,7 @@ int run_rpcs3(int argc, char** argv)
|
|||||||
logs::stored_message time{sys_log.always()};
|
logs::stored_message time{sys_log.always()};
|
||||||
time.text = fmt::format("Current Time: %s", std::chrono::system_clock::now());
|
time.text = fmt::format("Current Time: %s", std::chrono::system_clock::now());
|
||||||
|
|
||||||
logs::set_init({std::move(ver), std::move(sys), std::move(os), std::move(qt), std::move(time)});
|
logs::set_init({std::move(ver), std::move(arch), std::move(sys), std::move(os), std::move(qt), std::move(time)});
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ARCH_ARM64
|
#ifdef ARCH_ARM64
|
||||||
|
|||||||
@@ -531,6 +531,17 @@ std::string utils::get_cpu_brand()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string_view utils::get_architecture()
|
||||||
|
{
|
||||||
|
#if defined(ARCH_X64)
|
||||||
|
return "x64"sv;
|
||||||
|
#elif defined(ARCH_ARM64)
|
||||||
|
return "arm64"sv;
|
||||||
|
#else
|
||||||
|
return "unknown"sv;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
std::string utils::get_system_info()
|
std::string utils::get_system_info()
|
||||||
{
|
{
|
||||||
std::string result;
|
std::string result;
|
||||||
|
|||||||
@@ -71,6 +71,8 @@ namespace utils
|
|||||||
#endif
|
#endif
|
||||||
std::string get_cpu_brand();
|
std::string get_cpu_brand();
|
||||||
|
|
||||||
|
std::string_view get_architecture();
|
||||||
|
|
||||||
std::string get_system_info();
|
std::string get_system_info();
|
||||||
|
|
||||||
std::string get_firmware_version();
|
std::string get_firmware_version();
|
||||||
|
|||||||
Reference in New Issue
Block a user