iOS: change platform code to support plugins

This commit is contained in:
Sergey Minakov 2020-08-13 18:30:54 +03:00
parent 614f701373
commit 03cf3d5d4b
2 changed files with 6 additions and 0 deletions

View file

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

View file

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