Fix errors with global config names no more sorrys please
This commit is contained in:
parent
9cf72d0ae1
commit
5a2500f580
6 changed files with 9 additions and 9 deletions
|
|
@ -175,8 +175,8 @@ Error EditorExportPlatformIOS::export_project(const Ref<EditorExportPreset> &p_p
|
|||
String pkg_name;
|
||||
if (p_preset->get("application/name") != "")
|
||||
pkg_name = p_preset->get("application/name"); // app_name
|
||||
else if (String(GlobalConfig::get_singleton()->get("application/name")) != "")
|
||||
pkg_name = String(GlobalConfig::get_singleton()->get("application/name"));
|
||||
else if (String(GlobalConfig::get_singleton()->get("application/config/name")) != "")
|
||||
pkg_name = String(GlobalConfig::get_singleton()->get("application/config/name"));
|
||||
else
|
||||
pkg_name = "Unnamed";
|
||||
|
||||
|
|
|
|||
|
|
@ -275,8 +275,8 @@ Error EditorExportPlatformOSX::export_project(const Ref<EditorExportPreset> &p_p
|
|||
String pkg_name;
|
||||
if (p_preset->get("application/name") != "")
|
||||
pkg_name = p_preset->get("application/name"); // app_name
|
||||
else if (String(GlobalConfig::get_singleton()->get("application/name")) != "")
|
||||
pkg_name = String(GlobalConfig::get_singleton()->get("application/name"));
|
||||
else if (String(GlobalConfig::get_singleton()->get("application/config/name")) != "")
|
||||
pkg_name = String(GlobalConfig::get_singleton()->get("application/config/name"));
|
||||
else
|
||||
pkg_name = "Unnamed";
|
||||
|
||||
|
|
@ -438,7 +438,7 @@ Error EditorExportPlatformOSX::export_project(const Ref<EditorExportPreset> &p_p
|
|||
/**
|
||||
When exporting for OSX from any other platform we don't have access to code signing or creating DMGs so we'll wrap the bundle into a zip file.
|
||||
|
||||
Should probably find a nicer way to have just one export method instead of duplicating the method like this but I would the code got very
|
||||
Should probably find a nicer way to have just one export method instead of duplicating the method like this but I would the code got very
|
||||
messy with switches inside of it.
|
||||
**/
|
||||
Error EditorExportPlatformOSX::export_project(const Ref<EditorExportPreset> &p_preset, bool p_debug, const String &p_path, int p_flags) {
|
||||
|
|
|
|||
|
|
@ -774,7 +774,7 @@ class EditorExportUWP : public EditorExportPlatform {
|
|||
String architecture = arch == ARM ? "ARM" : arch == X86 ? "x86" : "x64";
|
||||
result = result.replace("$architecture$", architecture);
|
||||
|
||||
result = result.replace("$display_name$", String(p_preset->get("package/display_name")).empty() ? (String)GlobalConfig::get_singleton()->get("application/name") : String(p_preset->get("package/display_name")));
|
||||
result = result.replace("$display_name$", String(p_preset->get("package/display_name")).empty() ? (String)GlobalConfig::get_singleton()->get("application/config/name") : String(p_preset->get("package/display_name")));
|
||||
result = result.replace("$publisher_display_name$", p_preset->get("package/publisher_display_name"));
|
||||
result = result.replace("$app_description$", p_preset->get("package/description"));
|
||||
result = result.replace("$bg_color$", p_preset->get("images/background_color"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue