You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Unify usage of GLOBAL/EDITOR_GET
This commit is contained in:
@@ -442,7 +442,7 @@ Error EditorExportPlatformUWP::export_project(const Ref<EditorExportPreset> &p_p
|
||||
|
||||
#ifdef WINDOWS_ENABLED
|
||||
// Sign with signtool
|
||||
String signtool_path = EditorSettings::get_singleton()->get("export/uwp/signtool");
|
||||
String signtool_path = EDITOR_GET("export/uwp/signtool");
|
||||
if (signtool_path.is_empty()) {
|
||||
return OK;
|
||||
}
|
||||
@@ -454,9 +454,9 @@ Error EditorExportPlatformUWP::export_project(const Ref<EditorExportPreset> &p_p
|
||||
|
||||
static String algs[] = { "MD5", "SHA1", "SHA256" };
|
||||
|
||||
String cert_path = EditorSettings::get_singleton()->get("export/uwp/debug_certificate");
|
||||
String cert_pass = EditorSettings::get_singleton()->get("export/uwp/debug_password");
|
||||
int cert_alg = EditorSettings::get_singleton()->get("export/uwp/debug_algorithm");
|
||||
String cert_path = EDITOR_GET("export/uwp/debug_certificate");
|
||||
String cert_pass = EDITOR_GET("export/uwp/debug_password");
|
||||
int cert_alg = EDITOR_GET("export/uwp/debug_algorithm");
|
||||
|
||||
if (!p_debug) {
|
||||
cert_path = p_preset->get("signing/certificate");
|
||||
|
||||
@@ -213,7 +213,7 @@ class EditorExportPlatformUWP : public EditorExportPlatform {
|
||||
String architecture = arch == "arm32" ? "arm" : (arch == "x86_32" ? "x86" : "x64");
|
||||
result = result.replace("$architecture$", architecture);
|
||||
|
||||
result = result.replace("$display_name$", String(p_preset->get("package/display_name")).is_empty() ? (String)ProjectSettings::get_singleton()->get("application/config/name") : String(p_preset->get("package/display_name")));
|
||||
result = result.replace("$display_name$", String(p_preset->get("package/display_name")).is_empty() ? (String)GLOBAL_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"));
|
||||
|
||||
Reference in New Issue
Block a user