MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / export_project

Method export_project

editor/export/editor_export_platform_pc.cpp:145–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145Error EditorExportPlatformPC::export_project(const Ref<EditorExportPreset> &p_preset, bool p_debug, const String &p_path, BitField<EditorExportPlatform::DebugFlags> p_flags) {
146 ExportNotifier notifier(*this, p_preset, p_debug, p_path, p_flags);
147
148 Error err = prepare_template(p_preset, p_debug, p_path, p_flags);
149 if (err == OK) {
150 err = modify_template(p_preset, p_debug, p_path, p_flags);
151 }
152 if (err == OK) {
153 err = export_project_data(p_preset, p_debug, p_path, p_flags);
154 }
155
156 return err;
157}
158
159Error EditorExportPlatformPC::prepare_template(const Ref<EditorExportPreset> &p_preset, bool p_debug, const String &p_path, BitField<EditorExportPlatform::DebugFlags> p_flags) {
160 if (!DirAccess::exists(p_path.get_base_dir())) {

Callers 3

_fs_changedMethod · 0.45
_export_allMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected