Fixes dlogger PR

When applied this commit fixes the unix build of the previous dLogger PR.
This commit also fixes backwards compatability with config files.
This commit is contained in:
wincent
2021-12-13 16:57:43 +01:00
parent 81d25dd574
commit 259c236b72
6 changed files with 10 additions and 8 deletions

View File

@@ -45,7 +45,7 @@ int main(int argc, char** argv) {
dConfig config("authconfig.ini");
Game::config = &config;
Game::logger->SetLogToConsole(bool(std::stoi(config.GetValue("log_to_console"))));
Game::logger->SetLogDebugStatements(bool(std::stoi(config.GetValue("log_debug_statements"))));
Game::logger->SetLogDebugStatements(config.GetValue("log_debug_statements") == "1");
//Connect to the MySQL Database
std::string mysql_host = config.GetValue("mysql_host");