[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
No known key found for this signature in database
GPG key ID: 8413210218EF35D2
21 changed files with 56 additions and 31 deletions

View file

@ -1090,7 +1090,7 @@ Error EditorExportPlatformWindows::run(const Ref<EditorExportPreset> &p_preset,
#undef CLEANUP_AND_RETURN
}
EditorExportPlatformWindows::EditorExportPlatformWindows() {
void EditorExportPlatformWindows::initialize() {
if (EditorNode::get_singleton()) {
Ref<Image> img = memnew(Image);
const bool upsample = !Math::is_equal_approx(Math::round(EDSCALE), EDSCALE);

View file

@ -97,5 +97,5 @@ public:
virtual Error run(const Ref<EditorExportPreset> &p_preset, int p_device, BitField<EditorExportPlatform::DebugFlags> p_debug_flags) override;
virtual void cleanup() override;
EditorExportPlatformWindows();
virtual void initialize() override;
};