|
|
@ -526,9 +526,7 @@ boost::filesystem::path GetConfigFile(const std::string& confPath) |
|
|
|
return pathConfigFile; |
|
|
|
return pathConfigFile; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void ReadConfigFile(const std::string& confPath, |
|
|
|
void ReadConfigFile(const std::string& confPath) |
|
|
|
map<string, string>& mapSettingsRet, |
|
|
|
|
|
|
|
map<string, vector<string> >& mapMultiSettingsRet) |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
boost::filesystem::ifstream streamConfig(GetConfigFile(confPath)); |
|
|
|
boost::filesystem::ifstream streamConfig(GetConfigFile(confPath)); |
|
|
|
if (!streamConfig.good()) |
|
|
|
if (!streamConfig.good()) |
|
|
@ -543,9 +541,9 @@ void ReadConfigFile(const std::string& confPath, |
|
|
|
string strKey = string("-") + it->string_key; |
|
|
|
string strKey = string("-") + it->string_key; |
|
|
|
string strValue = it->value[0]; |
|
|
|
string strValue = it->value[0]; |
|
|
|
InterpretNegativeSetting(strKey, strValue); |
|
|
|
InterpretNegativeSetting(strKey, strValue); |
|
|
|
if (mapSettingsRet.count(strKey) == 0) |
|
|
|
if (mapArgs.count(strKey) == 0) |
|
|
|
mapSettingsRet[strKey] = strValue; |
|
|
|
mapArgs[strKey] = strValue; |
|
|
|
mapMultiSettingsRet[strKey].push_back(strValue); |
|
|
|
mapMultiArgs[strKey].push_back(strValue); |
|
|
|
} |
|
|
|
} |
|
|
|
// If datadir is changed in .conf file:
|
|
|
|
// If datadir is changed in .conf file:
|
|
|
|
ClearDatadirCache(); |
|
|
|
ClearDatadirCache(); |
|
|
|