mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-10 01:24:41 -06:00
cafe: log android platform
This commit is contained in:
parent
b9febc42bb
commit
8b1f104a57
@ -74,6 +74,10 @@
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
|
||||
#if BOOST_PLAT_ANDROID
|
||||
#include <android/api-level.h>
|
||||
#endif
|
||||
|
||||
std::string _pathToExecutable;
|
||||
std::string _pathToBaseExecutable;
|
||||
|
||||
@ -546,7 +550,10 @@ namespace CafeSystem
|
||||
{
|
||||
std::string buffer;
|
||||
const char* platform = NULL;
|
||||
#if BOOST_OS_WINDOWS
|
||||
#if BOOST_PLAT_ANDROID
|
||||
buffer = fmt::format("Android (API level {})", android_get_device_api_level());
|
||||
platform = buffer.c_str();
|
||||
#elif BOOST_OS_WINDOWS
|
||||
uint32 buildNumber;
|
||||
std::string windowsVersionName = GetWindowsNamedVersion(buildNumber);
|
||||
buffer = fmt::format("{} (Build {})", windowsVersionName, buildNumber);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user