mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
[EditorExportPlatform] Move initialization to a dedicated method.
This commit is contained in:
parent
7c472e655f
commit
f20e5152ad
21 changed files with 56 additions and 31 deletions
|
|
@ -33,13 +33,17 @@
|
|||
#include "logo_svg.gen.h"
|
||||
#include "run_icon_svg.gen.h"
|
||||
|
||||
#include "editor/editor_node.h"
|
||||
|
||||
Vector<String> EditorExportPlatformVisionOS::device_types({ "realityDevice" });
|
||||
|
||||
EditorExportPlatformVisionOS::EditorExportPlatformVisionOS() :
|
||||
EditorExportPlatformAppleEmbedded(_visionos_logo_svg, _visionos_run_icon_svg) {
|
||||
void EditorExportPlatformVisionOS::initialize() {
|
||||
if (EditorNode::get_singleton()) {
|
||||
EditorExportPlatformAppleEmbedded::_initialize(_visionos_logo_svg, _visionos_run_icon_svg);
|
||||
#ifdef MACOS_ENABLED
|
||||
_start_remote_device_poller_thread();
|
||||
_start_remote_device_poller_thread();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
EditorExportPlatformVisionOS::~EditorExportPlatformVisionOS() {
|
||||
|
|
|
|||
|
|
@ -56,6 +56,6 @@ public:
|
|||
r_features->push_back("visionos");
|
||||
}
|
||||
|
||||
EditorExportPlatformVisionOS();
|
||||
virtual void initialize() override;
|
||||
~EditorExportPlatformVisionOS();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue