[EditorExportPlatform] Move initialization to a dedicated method.

This commit is contained in:
Pāvels Nadtočajevs
2025-07-16 08:55:23 +03:00
parent 7c472e655f
commit f20e5152ad
21 changed files with 56 additions and 31 deletions

View File

@ -33,13 +33,17 @@
#include "logo_svg.gen.h"
#include "run_icon_svg.gen.h"
#include "editor/editor_node.h"
Vector<String> EditorExportPlatformIOS::device_types({ "iPhone", "iPad" });
EditorExportPlatformIOS::EditorExportPlatformIOS() :
EditorExportPlatformAppleEmbedded(_ios_logo_svg, _ios_run_icon_svg) {
void EditorExportPlatformIOS::initialize() {
if (EditorNode::get_singleton()) {
EditorExportPlatformAppleEmbedded::_initialize(_ios_logo_svg, _ios_run_icon_svg);
#ifdef MACOS_ENABLED
_start_remote_device_poller_thread();
_start_remote_device_poller_thread();
#endif
}
}
EditorExportPlatformIOS::~EditorExportPlatformIOS() {

View File

@ -61,6 +61,6 @@ public:
r_features->push_back("ios");
}
EditorExportPlatformIOS();
virtual void initialize() override;
~EditorExportPlatformIOS();
};