From 03cf3d5d4b4db2428f8c1d85e3a21ef2ac3d86a6 Mon Sep 17 00:00:00 2001 From: Sergey Minakov Date: Thu, 13 Aug 2020 18:30:54 +0300 Subject: [PATCH] iOS: change platform code to support plugins --- platform/iphone/os_iphone.h | 3 +++ platform/iphone/os_iphone.mm | 3 +++ 2 files changed, 6 insertions(+) diff --git a/platform/iphone/os_iphone.h b/platform/iphone/os_iphone.h index 633864b11f5..054f2ed68dc 100644 --- a/platform/iphone/os_iphone.h +++ b/platform/iphone/os_iphone.h @@ -44,6 +44,9 @@ #include "servers/visual/rasterizer.h" #include "servers/visual_server.h" +extern void godot_ios_plugins_initialize(); +extern void godot_ios_plugins_deinitialize(); + class OSIPhone : public OS_Unix { private: diff --git a/platform/iphone/os_iphone.mm b/platform/iphone/os_iphone.mm index 63810d33e99..20215e7a7cf 100644 --- a/platform/iphone/os_iphone.mm +++ b/platform/iphone/os_iphone.mm @@ -195,6 +195,7 @@ MainLoop *OSIPhone::get_main_loop() const { }; void OSIPhone::set_main_loop(MainLoop *p_main_loop) { + godot_ios_plugins_initialize(); main_loop = p_main_loop; @@ -319,6 +320,8 @@ void OSIPhone::finalize() { memdelete(ios); } + godot_ios_plugins_deinitialize(); + visual_server->finish(); memdelete(visual_server); // memdelete(rasterizer);