Fixed initialization of android modules

This commit is contained in:
dumitru-stama 2018-10-14 17:07:09 -07:00
parent b95f0e61e0
commit 4c9eb86cbf

View file

@ -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);
} }
} }
} }