#pragma once class File; using namespace std; class Settings { // public static Logger logger = Logger.getLogger("Minecraft"); // private Properties properties = new Properties(); private: unordered_map properties; File *file; void loadProperties(); static bool parseBoolValue(const wstring& value, bool defaultValue); public: Settings(File *file); ~Settings(); void generateNewProperties(); void saveProperties(); wstring getString(const wstring& key, const wstring& defaultValue); int getInt(const wstring& key, int defaultValue); bool getBoolean(const wstring& key, bool defaultValue); void setBooleanAndSave(const wstring& key, bool value); };