Need to set something valid for argc/argv
authorSam Lantinga <slouken@libsdl.org>
Tue, 04 Jan 2011 15:25:49 -0800
changeset 4957 5e42031a8d70
parent 4956 e0bd00bfd118
child 4958 47e9f1629e62
Need to set something valid for argc/argv
android/project/jni/android-support.cpp
--- a/android/project/jni/android-support.cpp	Tue Jan 04 12:49:48 2011 -0800
+++ b/android/project/jni/android-support.cpp	Tue Jan 04 15:25:49 2011 -0800
@@ -103,7 +103,10 @@
 
 	Android_EnableFeature(FEATURE_ACCEL, true);
 
-    SDL_main(0, 0);
+    char *argv[2];
+    argv[0] = strdup("SDL_app");
+    argv[1] = NULL;
+    SDL_main(1, argv);
 }
 
 //Keydown