Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Need to set something valid for argc/argv
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 4, 2011
1 parent bd13f69 commit 1e9299e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion android/project/jni/android-support.cpp
Expand Up @@ -103,7 +103,10 @@ extern "C" void Java_org_libsdl_app_SDLActivity_nativeInit( JNIEnv* env,

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
Expand Down

0 comments on commit 1e9299e

Please sign in to comment.