mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-01 23:35:41 +00:00
22 lines
351 B
C++
22 lines
351 B
C++
#pragma once
|
|
|
|
#include "Common.h"
|
|
|
|
#include <atomic>
|
|
|
|
class TConfig {
|
|
public:
|
|
explicit TConfig();
|
|
|
|
[[nodiscard]] bool Failed() const { return mFailed; }
|
|
|
|
private:
|
|
void CreateConfigFile(std::string_view name);
|
|
void ParseFromFile(std::string_view name);
|
|
void PrintDebug();
|
|
|
|
void ParseOldFormat();
|
|
|
|
bool mFailed { false };
|
|
};
|