Android: message to indicate that main() is called for the 1 or n'th time
This commit is contained in:
@@ -729,6 +729,8 @@ JNIEXPORT void JNICALL SDL_JAVA_CONTROLLER_INTERFACE(nativeSetupJNI)(JNIEnv *env
|
|||||||
/* SDL main function prototype */
|
/* SDL main function prototype */
|
||||||
typedef int (*SDL_main_func)(int argc, char *argv[]);
|
typedef int (*SDL_main_func)(int argc, char *argv[]);
|
||||||
|
|
||||||
|
static int run_count = 1;
|
||||||
|
|
||||||
/* Start up the SDL app */
|
/* Start up the SDL app */
|
||||||
JNIEXPORT int JNICALL SDL_JAVA_INTERFACE(nativeRunMain)(JNIEnv *env, jclass cls, jstring library, jstring function, jobject array)
|
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;
|
const char *library_file;
|
||||||
void *library_handle;
|
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 */
|
/* Save JNIEnv of SDLThread */
|
||||||
Android_JNI_SetEnv(env);
|
Android_JNI_SetEnv(env);
|
||||||
|
|||||||
Reference in New Issue
Block a user