Mercurial > sdl-ios-xcode
changeset 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 | e0bd00bfd118 |
children | 47e9f1629e62 |
files | android/project/jni/android-support.cpp |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
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