|
@@ -884,11 +884,11 @@ Error ProjectSettings::save_custom(const String &p_path, const CustomMap &p_cust
|
|
custom_features += f;
|
|
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);
|
|
return _save_settings_text(p_path, props, p_custom, custom_features);
|
|
- else if (p_path.ends_with(".binary"))
|
|
|
|
|
|
+ } else if (p_path.ends_with(".binary")) {
|
|
return _save_settings_binary(p_path, props, p_custom, custom_features);
|
|
return _save_settings_binary(p_path, props, p_custom, custom_features);
|
|
- else {
|
|
|
|
|
|
+ } else {
|
|
|
|
|
|
ERR_FAIL_V_MSG(ERR_FILE_UNRECOGNIZED, "Unknown config file format: " + p_path + ".");
|
|
ERR_FAIL_V_MSG(ERR_FILE_UNRECOGNIZED, "Unknown config file format: " + p_path + ".");
|
|
}
|
|
}
|