- Added ads support for Android

- basic "message" system between JGE and java through jni 
- Fixed pause/resume on android/sdl
This commit is contained in:
wagic.the.homebrew
2011-09-04 02:45:18 +00:00
parent 269934fe1e
commit 33691d1f13
21 changed files with 396 additions and 114 deletions
@@ -24,10 +24,12 @@ extern "C" void Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass c
/* Run the application code! */
int status;
char *argv[2];
char *argv[4];
argv[0] = strdup("SDL_app");
argv[1] = NULL;
status = SDL_main(1, argv);
argv[1] = (char *)env;
argv[2] = (char *)&cls;
argv[3] = NULL;
status = SDL_main(3, argv);
/* We exit here for consistency with other platforms. */
exit(status);