mirror of
https://github.com/LANCommander/BadCompany2.MasterServer.git
synced 2026-08-30 10:23:02 -04:00
28 lines
657 B
C++
28 lines
657 B
C++
#include "../main.h"
|
|
|
|
class Config
|
|
{
|
|
private:
|
|
string data;
|
|
debugSettings debugCfg;
|
|
connectionSettings portsCfg;
|
|
emulatorSettings emuCfg;
|
|
consoleSettings conCfg;
|
|
|
|
string getValue(const char* key);
|
|
bool setValue(string value, int& storage);
|
|
bool setValue(string value, bool& storage);
|
|
bool setValue(string value, string& storage, bool allow_empty = false);
|
|
|
|
bool getValuesFromSection(const char* section);
|
|
bool createDefaultConfig();
|
|
bool storeValues();
|
|
|
|
public:
|
|
Config();
|
|
bool loadConfigFile();
|
|
debugSettings getDebugCfg();
|
|
consoleSettings getConCfg();
|
|
emulatorSettings getEmuCfg();
|
|
connectionSettings getPortsCfg();
|
|
};
|