(Android) Temporary code to be able to test the .apk package

This commit is contained in:
Leon Styhre 2023-11-19 17:43:23 +01:00
parent bbab5c6b93
commit 1ea0428a00

View file

@ -42,6 +42,10 @@
#include <SDL2/SDL_main.h>
#include <SDL2/SDL_timer.h>
#if defined(__ANDROID__)
#include <android/log.h>
#endif
#if defined(__EMSCRIPTEN__)
#include <emscripten.h>
#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__)