You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix JNI local reference table overflow when wrapping Java class with large method counts
This commit is contained in:
@@ -514,7 +514,7 @@ JNIEXPORT void JNICALL Java_org_godotengine_godot_GodotLib_setEditorSetting(JNIE
|
||||
}
|
||||
|
||||
JNIEXPORT jobject JNICALL Java_org_godotengine_godot_GodotLib_getEditorProjectMetadata(JNIEnv *env, jclass clazz, jstring p_section, jstring p_key, jobject p_default_value) {
|
||||
jvalret result;
|
||||
jvalue result;
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
if (EditorSettings::get_singleton() != nullptr) {
|
||||
@@ -528,7 +528,7 @@ JNIEXPORT jobject JNICALL Java_org_godotengine_godot_GodotLib_getEditorProjectMe
|
||||
WARN_PRINT("Access to the Editor Settings Project Metadata is only available on Editor builds");
|
||||
#endif
|
||||
|
||||
return result.obj;
|
||||
return result.l;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_godotengine_godot_GodotLib_setEditorProjectMetadata(JNIEnv *env, jclass clazz, jstring p_section, jstring p_key, jobject p_data) {
|
||||
|
||||
Reference in New Issue
Block a user