mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 20:23:53 +00:00
[iOS] Initialize plugins earlier
Initialize iOS plugins before 'Main::setup' call to have access to them in script's '_init' function.
This commit is contained in:
parent
c691444d2e
commit
3db04b3bd4
@ -144,8 +144,6 @@ void OSIPhone::deinitialize_modules() {
|
||||
}
|
||||
|
||||
void OSIPhone::set_main_loop(MainLoop *p_main_loop) {
|
||||
godot_ios_plugins_initialize();
|
||||
|
||||
main_loop = p_main_loop;
|
||||
|
||||
if (main_loop) {
|
||||
@ -179,6 +177,8 @@ bool OSIPhone::iterate() {
|
||||
}
|
||||
|
||||
void OSIPhone::start() {
|
||||
godot_ios_plugins_initialize();
|
||||
|
||||
Main::start();
|
||||
|
||||
if (joypad_iphone) {
|
||||
|
Loading…
Reference in New Issue
Block a user