From 19d240c8a7671c40eea3433517a48d8d4e79c526 Mon Sep 17 00:00:00 2001 From: Sergey Minakov Date: Mon, 1 Feb 2021 15:22:48 +0300 Subject: [PATCH] [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(-) diff --git a/platform/iphone/os_iphone.mm b/platform/iphone/os_iphone.mm index 20215e7a7cf..ae9e3675fcb 100644 --- a/platform/iphone/os_iphone.mm +++ b/platform/iphone/os_iphone.mm @@ -114,6 +114,8 @@ int OSIPhone::get_current_video_driver() const { } void OSIPhone::start() { + godot_ios_plugins_initialize(); + Main::start(); if (joypad_iphone) { @@ -195,8 +197,6 @@ MainLoop *OSIPhone::get_main_loop() const { }; void OSIPhone::set_main_loop(MainLoop *p_main_loop) { - godot_ios_plugins_initialize(); - main_loop = p_main_loop; if (main_loop) {