[Export] Use project settings overrides with the target preset features instead of current platform features.

This commit is contained in:
bruvzg 2023-01-17 09:52:17 +02:00 committed by Pāvels Nadtočajevs
parent 4248411baf
commit c6739f64df
No known key found for this signature in database
GPG key ID: 8413210218EF35D2
22 changed files with 251 additions and 123 deletions

View file

@ -80,8 +80,8 @@ Error EditorExportPlatformLinuxBSD::export_project(const Ref<EditorExportPreset>
bool export_as_zip = p_path.ends_with("zip");
String pkg_name;
if (String(GLOBAL_GET("application/config/name")) != "") {
pkg_name = String(GLOBAL_GET("application/config/name"));
if (String(get_project_setting(p_preset, "application/config/name")) != "") {
pkg_name = String(get_project_setting(p_preset, "application/config/name"));
} else {
pkg_name = "Unnamed";
}