Settings::Settings(const std::string i_path)
{
//need to position path in user directory first.
- m_SettingsFileName = i_path + "\\.gimmick\\app.config";
+ m_SettingsFileName = i_path + "\\.gimmick\\Shared\\gimmick\\app.config";
//Test if Settings File exist
if(!boost::filesystem::exists(m_SettingsFileName) )
{
}
}
}
+
+ ////////////////////////////////////////////////////////////////////////////////////////////////
+ // Update settings in config file //
+ // @param key : Key to update //
+ // @param value: New value to set //
+ // return : -
+ ///////////////////////////////////////////////////////////////////////////////////////////////
+ void Settings::updateSetting(const std::string& key, const std::string &val)
+ {
+ m_SettingsMap[key.c_str()] = val;
+ }
+
////////////////////////////////////////////////////////////////////////////////////////////////
// add a path to a DB //
// @param i_path : DB path to add //
ofs.clear();
writeSettings(ofs);
ofs.close();
- }
-
-}
\ No newline at end of file
+ }
+}
+