iOS: change platform code to support plugins

This commit is contained in:
Sergey Minakov 2020-08-13 18:30:54 +03:00
parent 30783d57cc
commit 70f492082e
2 changed files with 7 additions and 0 deletions

View File

@ -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;

View File

@ -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) {