Fully implement TOML config file, delete .idea folder

The new config is called "ServerConfig.toml" and uses the TOML library.
It's nice.
This commit is contained in:
Lion Kortlepel authored and Lion committed 2021-06-23 01:54:17 +02:00
1 parent f626474b4f
commit 1abf6d5adf
8 files changed
+217 -103

No files matched your search

+10 -6
View File
@@ -2,14 +2,18 @@
#include "Common.h"
#include <atomic>
class TConfig {
public:
explicit TConfig(const std::string& ConfigFile);
explicit TConfig();
bool Failed() const { return mFailed; }
private:
static void ReadJson();
static void PrintDebug();
static void ManageJson();
static std::string RemoveComments(const std::string& Line);
static void SetValues(const std::string& Line, int Index);
void CreateConfigFile(std::string_view name);
void ParseFromFile(std::string_view name);
void PrintDebug();
bool mFailed { false };
};