mirror of
https://github.com/godotengine/godot
synced 2024-11-02 15:10:04 +00:00
Fixed initialization of android modules
This commit is contained in:
parent
b95f0e61e0
commit
4c9eb86cbf
1 changed files with 2 additions and 0 deletions
|
@ -883,6 +883,8 @@ static void _initialize_java_modules() {
|
|||
ERR_EXPLAIN("Couldn't find proper initialize function 'public static Godot.SingletonBase Class::initialize(Activity p_activity)' initializer for singleton class: " + m);
|
||||
ERR_CONTINUE(!initialize);
|
||||
}
|
||||
jobject obj = env->CallStaticObjectMethod(singletonClass, initialize, _godot_instance);
|
||||
env->NewGlobalRef(obj);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue