diff --git a/src/core/android/SDL_android.c b/src/core/android/SDL_android.c index 8da23962c8..064b0be36d 100644 --- a/src/core/android/SDL_android.c +++ b/src/core/android/SDL_android.c @@ -729,6 +729,8 @@ JNIEXPORT void JNICALL SDL_JAVA_CONTROLLER_INTERFACE(nativeSetupJNI)(JNIEnv *env /* SDL main function prototype */ typedef int (*SDL_main_func)(int argc, char *argv[]); +static int run_count = 1; + /* Start up the SDL app */ JNIEXPORT int JNICALL SDL_JAVA_INTERFACE(nativeRunMain)(JNIEnv *env, jclass cls, jstring library, jstring function, jobject array) { @@ -736,7 +738,8 @@ JNIEXPORT int JNICALL SDL_JAVA_INTERFACE(nativeRunMain)(JNIEnv *env, jclass cls, const char *library_file; void *library_handle; - __android_log_print(ANDROID_LOG_VERBOSE, "SDL", "nativeRunMain()"); + __android_log_print(ANDROID_LOG_VERBOSE, "SDL", "nativeRunMain() %d time", run_count); + run_count += 1; /* Save JNIEnv of SDLThread */ Android_JNI_SetEnv(env);