mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-26 02:54:17 +01:00
Log platform info (#931)
This commit is contained in:
parent
a17111e6b0
commit
22bf6420d2
@ -484,6 +484,28 @@ namespace CafeSystem
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void logPlatformInfo()
|
||||||
|
{
|
||||||
|
const char* platform = NULL;
|
||||||
|
#if BOOST_OS_WINDOWS
|
||||||
|
platform = "Windows";
|
||||||
|
#elif BOOST_OS_LINUX
|
||||||
|
if (getenv ("APPIMAGE"))
|
||||||
|
platform = "Linux (AppImage)";
|
||||||
|
else if (getenv ("SNAP"))
|
||||||
|
platform = "Linux (Snap)";
|
||||||
|
else if (platform = getenv ("container"))
|
||||||
|
if (strcmp (platform, "flatpak") == 0)
|
||||||
|
platform = "Linux (Flatpak)";
|
||||||
|
else
|
||||||
|
platform = "Linux";
|
||||||
|
#elif BOOST_OS_MACOS
|
||||||
|
platform = "MacOS";
|
||||||
|
#endif
|
||||||
|
cemuLog_log(LogType::Force, "Platform: {}", platform);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// initialize all subsystems which are persistent and don't depend on a game running
|
// initialize all subsystems which are persistent and don't depend on a game running
|
||||||
void Initialize()
|
void Initialize()
|
||||||
{
|
{
|
||||||
@ -501,6 +523,7 @@ namespace CafeSystem
|
|||||||
_CheckForWine();
|
_CheckForWine();
|
||||||
// CPU and RAM info
|
// CPU and RAM info
|
||||||
logCPUAndMemoryInfo();
|
logCPUAndMemoryInfo();
|
||||||
|
logPlatformInfo();
|
||||||
cemuLog_log(LogType::Force, "Used CPU extensions: {}", g_CPUFeatures.GetCommaSeparatedExtensionList());
|
cemuLog_log(LogType::Force, "Used CPU extensions: {}", g_CPUFeatures.GetCommaSeparatedExtensionList());
|
||||||
// misc systems
|
// misc systems
|
||||||
rplSymbolStorage_init();
|
rplSymbolStorage_init();
|
||||||
|
Loading…
Reference in New Issue
Block a user