mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-19 20:11:59 +03:00
settings, token entry, receive READY
This commit is contained in:
18
settings.hpp
Normal file
18
settings.hpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
#include <SimpleIni.h>
|
||||
|
||||
class SettingsManager {
|
||||
public:
|
||||
SettingsManager(std::string filename);
|
||||
|
||||
void Close();
|
||||
std::string GetSetting(std::string section, std::string key, std::string fallback = "");
|
||||
void SetSetting(std::string section, std::string key, std::string value);
|
||||
bool IsValid() const;
|
||||
|
||||
private:
|
||||
bool m_ok;
|
||||
std::string m_filename;
|
||||
CSimpleIniA m_ini;
|
||||
};
|
||||
Reference in New Issue
Block a user