Ticket #4146: 4146_config.patch
File 4146_config.patch, 895 bytes (added by , 7 years ago) |
---|
-
source/i18n/L10n.cpp
93 93 return false; 94 94 95 95 g_ConfigDB.SetValueString(CFG_USER, "locale", locale.getName()); 96 g_ConfigDB.WriteValueToFile(CFG_USER, "locale", locale.getName()); 97 return true; 96 return g_ConfigDB.WriteValueToFile(CFG_USER, "locale", locale.getName()); 98 97 } 99 98 100 99 bool L10n::ValidateLocale(const std::string& localeCode) const -
source/ps/ConfigDB.cpp
446 446 447 447 TConfigMap newMap; 448 448 m_Map[ns].swap(newMap); 449 if (!Reload(ns)) 450 return false; 449 Reload(ns); 451 450 452 451 SetValueString(ns, name, value); 453 452 bool ret = WriteFile(ns, path);