Merge pull request #69805 from akien-mga/editor-fix-looking-up-pc-templates

Editor: Fix regression fetching Windows/Linux export templates
This commit is contained in:
Rémi Verschelde 2022-12-09 14:31:58 +01:00 committed by GitHub
commit 45cac42c0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -81,8 +81,8 @@ bool EditorExportPlatformPC::has_valid_export_configuration(const Ref<EditorExpo
// Look for export templates (first official, and if defined custom templates). // Look for export templates (first official, and if defined custom templates).
String arch = p_preset->get("binary_format/architecture"); String arch = p_preset->get("binary_format/architecture");
bool dvalid = exists_export_template(get_template_file_name("template_debug", arch), &err); bool dvalid = exists_export_template(get_template_file_name("debug", arch), &err);
bool rvalid = exists_export_template(get_template_file_name("template_release", arch), &err); bool rvalid = exists_export_template(get_template_file_name("release", arch), &err);
if (p_preset->get("custom_template/debug") != "") { if (p_preset->get("custom_template/debug") != "") {
dvalid = FileAccess::exists(p_preset->get("custom_template/debug")); dvalid = FileAccess::exists(p_preset->get("custom_template/debug"));