Forráskód Böngészése

JNI_Unload must return the JNI version needed by the native library

Anonymous Maarten 3 hónapja
szülő
commit
eda8d1d842
1 módosított fájl, 1 hozzáadás és 2 törlés
  1. 1 2
      src/core/SDL_core_unsupported.c

+ 1 - 2
src/core/SDL_core_unsupported.c

@@ -184,7 +184,6 @@ Sint32 JNI_OnLoad(JavaVM *vm, void *reserved)
 {
 {
     (void)vm;
     (void)vm;
     (void)reserved;
     (void)reserved;
-    SDL_Unsupported();
-    return -1; // JNI_ERR
+    return 0x00010004; // JNI_VERSION_1_4
 }
 }
 #endif
 #endif