From 7ca36e7b43e9cea9a5f25dd183781b5b1bc37e81 Mon Sep 17 00:00:00 2001 From: nillerusr Date: Sat, 31 Dec 2022 19:14:30 +0300 Subject: [PATCH] launcher(android): fix crashhandler initialization --- launcher/android/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/launcher/android/main.cpp b/launcher/android/main.cpp index e044ae6c..10133e83 100644 --- a/launcher/android/main.cpp +++ b/launcher/android/main.cpp @@ -27,6 +27,7 @@ char *LauncherArgv[512]; char java_args[4096]; int iLastArgs = 0; +extern void InitCrashHandler(); DLL_EXPORT int LauncherMain( int argc, char **argv ); // from launcher.cpp DLL_EXPORT int Java_com_valvesoftware_ValveActivity2_setenv(JNIEnv *jenv, jclass *jclass, jstring env, jstring value, jint over) @@ -118,6 +119,8 @@ void android_property_print(const char *name) DLL_EXPORT int LauncherMainAndroid( int argc, char **argv ) { + InitCrashHandler(); + Msg("GetTotalMemory() = %.2f \n", GetTotalMemory()); android_property_print("ro.build.version.sdk");