summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2021-02-24 16:37:29 +0100
committerkobewi <kobewi4e@gmail.com>2021-03-07 01:21:44 +0100
commit156c402f2bfd391f2b1160710ff206f4427b8501 (patch)
tree234b0f37c8da0ea46fc53a8bc825f2ba14db255f /core
parent7f8bfd6ed17b9b4f3ae93deb506e250fba43e452 (diff)
Allow to save override.cfg with ProjectSettings
Diffstat (limited to 'core')
-rw-r--r--core/config/project_settings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/config/project_settings.cpp b/core/config/project_settings.cpp
index c872ae2162..02effc2001 100644
--- a/core/config/project_settings.cpp
+++ b/core/config/project_settings.cpp
@@ -909,7 +909,7 @@ Error ProjectSettings::save_custom(const String &p_path, const CustomMap &p_cust
custom_features += f;
}
- if (p_path.ends_with(".godot")) {
+ if (p_path.ends_with(".godot") || p_path.ends_with("override.cfg")) {
return _save_settings_text(p_path, props, p_custom, custom_features);
} else if (p_path.ends_with(".binary")) {
return _save_settings_binary(p_path, props, p_custom, custom_features);