Commit bad45fc2 authored by Sam Lantinga's avatar Sam Lantinga

Need to set something valid for argc/argv

parent 1218c81c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment