Allow to save override.cfg with ProjectSettings

This commit is contained in:
kobewi
2021-02-24 16:37:29 +01:00
parent 7f8bfd6ed1
commit 156c402f2b
2 changed files with 3 additions and 2 deletions

View File

@@ -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);