Skip to content

Commit

Permalink
Fix Windows console wrapper and icon being swapped
Browse files Browse the repository at this point in the history
Fixes #80238.
  • Loading branch information
OXTyler committed Aug 7, 2023
1 parent 16a9356 commit c1c4b26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/windows/export/export_plugin.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit c1c4b26

Please sign in to comment.