Fix Windows console wrapper and icon being swapped

Fixes #80238.

(cherry picked from commit 3cf1e04579)
This commit is contained in:
Tyler 2023-08-06 21:38:09 -04:00 committed by Yuri Sizov
parent f8cf6eb567
commit fed41ae520
1 changed files with 2 additions and 2 deletions

View File

@ -168,10 +168,10 @@ Error EditorExportPlatformWindows::sign_shared_object(const Ref<EditorExportPres
Error EditorExportPlatformWindows::modify_template(const Ref<EditorExportPreset> &p_preset, bool p_debug, const String &p_path, int p_flags) {
if (p_preset->get("application/modify_resources")) {
_rcedit_add_data(p_preset, p_path, true);
_rcedit_add_data(p_preset, p_path, false);
String wrapper_path = p_path.get_basename() + ".console.exe";
if (FileAccess::exists(wrapper_path)) {
_rcedit_add_data(p_preset, wrapper_path, false);
_rcedit_add_data(p_preset, wrapper_path, true);
}
}
return OK;