From 1ea0428a00d328351aa2c7a249c04c541e724057 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 19 Nov 2023 17:43:23 +0100 Subject: [PATCH] (Android) Temporary code to be able to test the .apk package --- es-app/src/main.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/es-app/src/main.cpp b/es-app/src/main.cpp index 42dd245ac..fa6ef6c32 100644 --- a/es-app/src/main.cpp +++ b/es-app/src/main.cpp @@ -42,6 +42,10 @@ #include #include +#if defined(__ANDROID__) +#include +#endif + #if defined(__EMSCRIPTEN__) #include #endif @@ -525,6 +529,12 @@ int main(int argc, char* argv[]) { const auto applicationStartTime {std::chrono::system_clock::now()}; +#if defined(__ANDROID__) + __android_log_print(ANDROID_LOG_VERBOSE, nullptr, "ES-DE running on Android!"); + SDL_Delay(3000); + return 0; +#endif + std::locale::global(std::locale("C")); #if defined(__APPLE__)