Files
LazyByteDev b40d5e9d01 src stuff
2026-03-02 03:31:00 -05:00

26 lines
704 B
C++

#pragma once
class File;
using namespace std;
class Settings
{
// public static Logger logger = Logger.getLogger("Minecraft");
// private Properties properties = new Properties();
private:
unordered_map<wstring,wstring> 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);
};