Need to set something valid for argc/argv
authorSam Lantinga
Tue, 04 Jan 2011 15:25:49 -0800
changeset 49575e42031a8d70
parent 4956 e0bd00bfd118
child 4958 47e9f1629e62
Need to set something valid for argc/argv
android/project/jni/android-support.cpp
     1.1 --- a/android/project/jni/android-support.cpp	Tue Jan 04 12:49:48 2011 -0800
     1.2 +++ b/android/project/jni/android-support.cpp	Tue Jan 04 15:25:49 2011 -0800
     1.3 @@ -103,7 +103,10 @@
     1.4  
     1.5  	Android_EnableFeature(FEATURE_ACCEL, true);
     1.6  
     1.7 -    SDL_main(0, 0);
     1.8 +    char *argv[2];
     1.9 +    argv[0] = strdup("SDL_app");
    1.10 +    argv[1] = NULL;
    1.11 +    SDL_main(1, argv);
    1.12  }
    1.13  
    1.14  //Keydown