summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Minakov <naithar@icloud.com>2020-08-13 18:30:54 +0300
committerSergey Minakov <naithar@icloud.com>2020-11-10 16:28:36 +0300
commit70f492082e5a63db0f10127f379388abd80d766f (patch)
tree85d07fcf7558aaaa3ffd5bb65d33f2ba1e80eaf9
parent30783d57ccf6f368f21a84e408f56b86d05cba2b (diff)
iOS: change platform code to support plugins
-rw-r--r--platform/iphone/os_iphone.h3
-rw-r--r--platform/iphone/os_iphone.mm4
2 files changed, 7 insertions, 0 deletions
diff --git a/platform/iphone/os_iphone.h b/platform/iphone/os_iphone.h
index f0854cf98b..04a0a478d5 100644
--- a/platform/iphone/os_iphone.h
+++ b/platform/iphone/os_iphone.h
@@ -45,6 +45,9 @@
#include "platform/iphone/vulkan_context_iphone.h"
#endif
+extern void godot_ios_plugins_initialize();
+extern void godot_ios_plugins_deinitialize();
+
class OSIPhone : public OS_Unix {
private:
static HashMap<String, void *> dynamic_symbol_lookup_table;
diff --git a/platform/iphone/os_iphone.mm b/platform/iphone/os_iphone.mm
index a749ac7e06..b87e6f37a0 100644
--- a/platform/iphone/os_iphone.mm
+++ b/platform/iphone/os_iphone.mm
@@ -139,9 +139,13 @@ void OSIPhone::deinitialize_modules() {
if (ios) {
memdelete(ios);
}
+
+ godot_ios_plugins_deinitialize();
}
void OSIPhone::set_main_loop(MainLoop *p_main_loop) {
+ godot_ios_plugins_initialize();
+
main_loop = p_main_loop;
if (main_loop) {