mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Merge commit godotengine/godot@a3b42d85d2
This commit is contained in:
@@ -98,3 +98,18 @@ static inline String jstring_to_string(jstring source, JNIEnv *env = nullptr) {
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set up thread-safe Android ClassLoader (used by jni_find_class() below).
|
||||
*/
|
||||
void setup_android_class_loader();
|
||||
void cleanup_android_class_loader();
|
||||
|
||||
/**
|
||||
* Thread-safe JNI class finder using Android ClassLoader.
|
||||
* Works on any thread, unlike standard FindClass which may fail on non-main threads.
|
||||
* @param p_env JNI environment instance.
|
||||
* @param p_class_name Class name to find.
|
||||
* @return jclass reference or null if not found.
|
||||
*/
|
||||
jclass jni_find_class(JNIEnv *p_env, const char *p_class_name);
|
||||
|
||||
Reference in New Issue
Block a user