From 3c3fe3b9f727c1e398760b139a2ef2da41d3cbda Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 19 Aug 2020 01:07:55 -0400 Subject: settings, token entry, receive READY --- settings.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 settings.hpp (limited to 'settings.hpp') diff --git a/settings.hpp b/settings.hpp new file mode 100644 index 0000000..e6a5b99 --- /dev/null +++ b/settings.hpp @@ -0,0 +1,18 @@ +#pragma once +#include +#include + +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; +}; -- cgit v1.2.3