forked from 0ad/0ad
Save the config file even it does not exist, patch by Vladislav Belov, fixes #4146
This was SVN commit r18960.
This commit is contained in:
parent
b83d5eb63c
commit
a3c3ca79cf
@ -93,8 +93,7 @@ bool L10n::SaveLocale(const Locale& locale) const
|
||||
return false;
|
||||
|
||||
g_ConfigDB.SetValueString(CFG_USER, "locale", locale.getName());
|
||||
g_ConfigDB.WriteValueToFile(CFG_USER, "locale", locale.getName());
|
||||
return true;
|
||||
return g_ConfigDB.WriteValueToFile(CFG_USER, "locale", locale.getName());
|
||||
}
|
||||
|
||||
bool L10n::ValidateLocale(const std::string& localeCode) const
|
||||
|
@ -446,8 +446,7 @@ bool CConfigDB::WriteValueToFile(EConfigNamespace ns, const CStr& name, const CS
|
||||
|
||||
TConfigMap newMap;
|
||||
m_Map[ns].swap(newMap);
|
||||
if (!Reload(ns))
|
||||
return false;
|
||||
Reload(ns);
|
||||
|
||||
SetValueString(ns, name, value);
|
||||
bool ret = WriteFile(ns, path);
|
||||
|
Loading…
Reference in New Issue
Block a user