From 3db04b3bd43afc762164dd225ce0e3044d429448 Mon Sep 17 00:00:00 2001 From: Sergey Minakov Date: Mon, 1 Feb 2021 15:26:55 +0300 Subject: [iOS] Initialize plugins earlier Initialize iOS plugins before 'Main::setup' call to have access to them in script's '_init' function. --- platform/iphone/os_iphone.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'platform/iphone') diff --git a/platform/iphone/os_iphone.mm b/platform/iphone/os_iphone.mm index 625cbf178e..51c4da2960 100644 --- a/platform/iphone/os_iphone.mm +++ b/platform/iphone/os_iphone.mm @@ -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) { -- cgit v1.2.3