Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Need to set something valid for argc/argv

  • Loading branch information
slouken committed Jan 4, 2011
1 parent bd13f69 commit 1e9299e8d5e568ce9ebcbdc39a7d654bbb2ee5dc
Showing with 4 additions and 1 deletion.
  1. +4 −1 android/project/jni/android-support.cpp
@@ -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

0 comments on commit 1e9299e

Please sign in to comment.