Lion Kortlepel 2cfb27820a
switch to toml11
it's better, believe me
2021-09-09 12:12:54 +03:00

24 lines
376 B
C++

#pragma once
#include "Common.h"
#include <atomic>
class TConfig {
public:
explicit TConfig();
[[nodiscard]] bool Failed() const { return mFailed; }
void FlushToFile();
private:
void CreateConfigFile(std::string_view name);
void ParseFromFile(std::string_view name);
void PrintDebug();
void ParseOldFormat();
bool mFailed { false };
};