void SETTINGS::Load(const std::string & settingsfile, std::ostream & error) { CONFIG config; if (!config.Load(settingsfile)) { error << "Failed to load " << settingsfile << std::endl; } Serialize(false, config); }
void SETTINGS::Save(const std::string & settingsfile, std::ostream & error) { CONFIG config; if (!config.Load(settingsfile)) { error << "Failed to load " << settingsfile << std::endl; } Serialize(true, config); if (!config.Write()) { error << "Failed to save " << settingsfile << std::endl; } }