SDL: JNI_Unload must return the JNI version needed by the native library

From eda8d1d8427c84bd27bfc5128173b0fc26cef173 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Wed, 26 Nov 2025 13:44:29 +0100
Subject: [PATCH] JNI_Unload must return the JNI version needed by the native
 library

---
 src/core/SDL_core_unsupported.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/core/SDL_core_unsupported.c b/src/core/SDL_core_unsupported.c
index ecc862c2f19ad..d9e81cc64d380 100644
--- a/src/core/SDL_core_unsupported.c
+++ b/src/core/SDL_core_unsupported.c
@@ -184,7 +184,6 @@ Sint32 JNI_OnLoad(JavaVM *vm, void *reserved)
 {
     (void)vm;
     (void)reserved;
-    SDL_Unsupported();
-    return -1; // JNI_ERR
+    return 0x00010004; // JNI_VERSION_1_4
 }
 #endif