From f8d622352f4e4ebcee73400c499deeefd0f76d30 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Sat, 9 Jul 2022 22:42:38 +0200 Subject: [PATCH] generate toml from scratch --- src/TConfig.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TConfig.cpp b/src/TConfig.cpp index 8d445c9..531fd59 100644 --- a/src/TConfig.cpp +++ b/src/TConfig.cpp @@ -62,7 +62,8 @@ void SetComment(CommentsT& Comments, const std::string& Comment) { * whether it is in TConfig.cpp or the configuration file. */ void TConfig::FlushToFile() { - auto data = toml::parse(mConfigFileName); + // auto data = toml::parse(mConfigFileName); + auto data = toml::value {}; data["General"][StrAuthKey.data()] = Application::Settings.Key; SetComment(data["General"][StrAuthKey.data()].comments(), " AuthKey has to be filled out in order to run the server"); data["General"][StrDebug.data()] = Application::Settings.DebugModeEnabled;