Skip to content

Commit 7ca36e7

Browse files
committed
launcher(android): fix crashhandler initialization
1 parent 44fef25 commit 7ca36e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

launcher/android/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ char *LauncherArgv[512];
2727
char java_args[4096];
2828
int iLastArgs = 0;
2929

30+
extern void InitCrashHandler();
3031
DLL_EXPORT int LauncherMain( int argc, char **argv ); // from launcher.cpp
3132

3233
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)
118119

119120
DLL_EXPORT int LauncherMainAndroid( int argc, char **argv )
120121
{
122+
InitCrashHandler();
123+
121124
Msg("GetTotalMemory() = %.2f \n", GetTotalMemory());
122125

123126
android_property_print("ro.build.version.sdk");

0 commit comments

Comments
 (0)