Merge pull request #75984 from KoBeWi/ConsoleMcWrap

Rename console script to wrapper
This commit is contained in:
Rémi Verschelde 2023-06-12 22:54:24 +02:00
commit 54a8adfd50
No known key found for this signature in database
GPG key ID: C3336907360768E1
3 changed files with 9 additions and 9 deletions

View file

@ -95,15 +95,15 @@ Error EditorExportPlatformLinuxBSD::export_project(const Ref<EditorExportPreset>
return err;
}
// Save console script.
// Save console wrapper.
if (err == OK) {
int con_scr = p_preset->get("debug/export_console_script");
int con_scr = p_preset->get("debug/export_console_wrapper");
if ((con_scr == 1 && p_debug) || (con_scr == 2)) {
String scr_path = path.get_basename() + ".sh";
err = _export_debug_script(p_preset, pkg_name, path.get_file(), scr_path);
FileAccess::set_unix_permissions(scr_path, 0755);
if (err != OK) {
add_message(EXPORT_MESSAGE_ERROR, TTR("Debug Script Export"), TTR("Could not create console script."));
add_message(EXPORT_MESSAGE_ERROR, TTR("Debug Console Export"), TTR("Could not create console wrapper."));
}
}
}