Remove GameConfig

This commit is contained in:
EmosewaMC
2022-12-05 21:58:21 -08:00
parent a8f8de0689
commit cef5cdeea2
7 changed files with 12 additions and 94 deletions

View File

@@ -51,3 +51,7 @@ void dConfig::ProcessLine(const std::string& line) {
this->m_ConfigValues.insert(std::make_pair(key, value));
}
void dConfig::AddToConfig(std::string& key, std::string& value) {
this->m_ConfigValues.insert_or_assign(key, value);
}

View File

@@ -25,6 +25,11 @@ public:
*/
void ReloadConfig();
/**
* Adds to or replaces a config in the config values.
*/
void AddToConfig(std::string& key, std::string& value);
private:
void ProcessLine(const std::string& line);