You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Unify usage of GLOBAL/EDITOR_GET
This commit is contained in:
@@ -56,8 +56,8 @@ Error EditorExportPlatformLinuxBSD::export_project(const Ref<EditorExportPreset>
|
||||
}
|
||||
|
||||
String app_name;
|
||||
if (String(ProjectSettings::get_singleton()->get("application/config/name")) != "") {
|
||||
app_name = String(ProjectSettings::get_singleton()->get("application/config/name"));
|
||||
if (String(GLOBAL_GET("application/config/name")) != "") {
|
||||
app_name = String(GLOBAL_GET("application/config/name"));
|
||||
} else {
|
||||
app_name = "Unnamed";
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ void FreeDesktopScreenSaver::inhibit() {
|
||||
return;
|
||||
}
|
||||
|
||||
String app_name_string = ProjectSettings::get_singleton()->get("application/config/name");
|
||||
String app_name_string = GLOBAL_GET("application/config/name");
|
||||
CharString app_name_utf8 = app_name_string.utf8();
|
||||
const char *app_name = app_name_string.is_empty() ? "Godot Engine" : app_name_utf8.get_data();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user