src/main/android/SDL_android_main.c
changeset 9006 98c808d72e20
parent 8694 244c7784723b
child 9171 3464a9bda1e2
--- a/src/main/android/SDL_android_main.c	Fri Jul 11 22:15:34 2014 -0700
+++ b/src/main/android/SDL_android_main.c	Sat Jul 12 13:05:41 2014 -0700
@@ -25,9 +25,12 @@
     SDL_SetMainReady();
 
     /* Run the application code! */
+    /* Use the name "app_process" so PHYSFS_platformCalcBaseDir() works.
+       https://bitbucket.org/MartinFelis/love-android-sdl2/issue/23/release-build-crash-on-start
+     */
     int status;
     char *argv[2];
-    argv[0] = SDL_strdup("SDL_app");
+    argv[0] = SDL_strdup("app_process");
     argv[1] = NULL;
     status = SDL_main(1, argv);