Added the set/get_setting function in Editor/Project settings. Renamed has() to has_setting. Fixes #11844
This commit is contained in:
parent
928efe06d6
commit
3d87b70f7a
19 changed files with 81 additions and 48 deletions
|
|
@ -871,7 +871,7 @@ class EditorExportAndroid : public EditorExportPlatform {
|
|||
|
||||
String lang = str.substr(str.find_last("-") + 1, str.length()).replace("-", "_");
|
||||
String prop = "application/config/name_" + lang;
|
||||
if (ProjectSettings::get_singleton()->has(prop)) {
|
||||
if (ProjectSettings::get_singleton()->has_setting(prop)) {
|
||||
str = ProjectSettings::get_singleton()->get(prop);
|
||||
} else {
|
||||
str = get_project_name(package_name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue