aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Settings.h
blob: 4a3c130be3ae059d9a6a29b102c7c304ea2a9875 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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;
	wstring filePath;

public:
	Settings(File *file);
    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);
};