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_EXPLAIN("Couldn't find proper initialize function 'public static Godot.SingletonBase Class::initialize(Activity p_activity)' initializer for singleton class: " + m);
|
||||||
ERR_CONTINUE(!initialize);
|
ERR_CONTINUE(!initialize);
|
||||||
}
|
}
|
||||||
|
jobject obj = env->CallStaticObjectMethod(singletonClass, initialize, _godot_instance);
|
||||||
|
env->NewGlobalRef(obj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue