Mercurial > sdl-ios-xcode
diff android/project/jni/android-support.cpp @ 4957:5e42031a8d70
Need to set something valid for argc/argv
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 04 Jan 2011 15:25:49 -0800 |
parents | 4f40b11e1045 |
children |
line wrap: on
line diff
--- 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