diff options
author | Sergey Minakov <naithar@icloud.com> | 2021-02-01 15:26:55 +0300 |
---|---|---|
committer | Sergey Minakov <naithar@icloud.com> | 2021-02-01 15:27:10 +0300 |
commit | 3db04b3bd43afc762164dd225ce0e3044d429448 (patch) | |
tree | a4c29eba71e6972dd0f4ab43d812b564aafcc611 /platform | |
parent | c691444d2e63c95fdfb9501e5080387cbc8737f2 (diff) |
[iOS] Initialize plugins earlier
Initialize iOS plugins before 'Main::setup' call to have access to them in script's '_init' function.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/iphone/os_iphone.mm | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |