From 8b1f104a57baa75d3cc98f2bf95f40a1441b4d22 Mon Sep 17 00:00:00 2001 From: SSimco <37044560+SSimco@users.noreply.github.com> Date: Sat, 9 May 2026 17:23:21 +0300 Subject: [PATCH] cafe: log android platform --- src/Cafe/CafeSystem.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Cafe/CafeSystem.cpp b/src/Cafe/CafeSystem.cpp index 5aefb605..bfc07d00 100644 --- a/src/Cafe/CafeSystem.cpp +++ b/src/Cafe/CafeSystem.cpp @@ -74,6 +74,10 @@ #include #endif +#if BOOST_PLAT_ANDROID +#include +#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);