You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user