Add Enable GodMode setting.

BE CAREFUL WITH THIS!!!
This commit is contained in:
StackZ
2020-03-01 23:11:48 +01:00
parent 2142c1eb9c
commit 1c2c3dc675
6 changed files with 19 additions and 8 deletions
+1 -1
View File
@@ -47,6 +47,7 @@ bool Config::Logging;
bool Config::UseBars;
std::string Config::StorePath;
int Config::LangPath;
bool Config::GodMode = false;
nlohmann::json configJson;
void Config::load() {
@@ -203,7 +204,6 @@ void Config::initializeNewConfig() {
Config::setBool("LOGGING", false);
Config::setBool("BARS", true);
Config::setString("STOREPATH", STORE_PATH);
if(file) fwrite(configJson.dump(1, '\t').c_str(), 1, configJson.dump(1, '\t').size(), file);
fclose(file);
}