mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Android: some typos
This commit is contained in:
parent
b9aa3768ac
commit
8ad4000ce2
@ -331,13 +331,13 @@ JNIEnv* Android_JNI_GetEnv(void)
|
|||||||
/* Get JNIEnv from the Thread local storage */
|
/* Get JNIEnv from the Thread local storage */
|
||||||
JNIEnv *env = pthread_getspecific(mThreadKey);
|
JNIEnv *env = pthread_getspecific(mThreadKey);
|
||||||
if (env == NULL) {
|
if (env == NULL) {
|
||||||
/* If it fails, try to attach ! (e.g the thread isn't * created with SDL_CreateThread() */
|
/* If it fails, try to attach ! (e.g the thread isn't created with SDL_CreateThread() */
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
/* There should be a JVM */
|
/* There should be a JVM */
|
||||||
if (mJavaVM == NULL) {
|
if (mJavaVM == NULL) {
|
||||||
__android_log_print(ANDROID_LOG_ERROR, "SDL", "Failed, there is no JavaVM");
|
__android_log_print(ANDROID_LOG_ERROR, "SDL", "Failed, there is no JavaVM");
|
||||||
return 0;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Attach the current thread to the JVM and get a JNIEnv.
|
/* Attach the current thread to the JVM and get a JNIEnv.
|
||||||
|
Loading…
Reference in New Issue
Block a user