Add option to set config values.

This commit is contained in:
2023-10-23 21:09:56 -07:00
parent 28238ba041
commit 9a83cf6c08
3 changed files with 28 additions and 1 deletions

View File

@@ -90,6 +90,13 @@ SimpleConfig::GetGlobal(std::string &key, const std::string &defaultValue)
}
void
SimpleConfig::PutGlobal(std::string &key, const std::string &value)
{
return globalConfig.Put(key, value);
}
SimpleConfig::SimpleConfig()
{
}
@@ -173,6 +180,13 @@ SimpleConfig::Get(std::string &key, std::string defaultValue)
}
void
SimpleConfig::Put(std::string &key, const std::string value)
{
this->vars[key] = std::move(key);
}
std::vector<std::string>
SimpleConfig::KeyList()
{