mirror of
https://github.com/yawut/SDL.git
synced 2026-09-07 08:36:19 -05:00
Need to set something valid for argc/argv
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user