summaryrefslogtreecommitdiffstats
path: root/src/citra_qt/config.h
blob: 8c6568cb2be23f5f5f8645f1c162f1953342787c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2014 Citra Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.

#pragma once

#include <QSettings>

#include "common/common_types.h"

class Config {
    QSettings* qt_config;
    std::string qt_config_loc;

    void ReadControls();
    void SaveControls();
    void ReadCore();
    void SaveCore();
    void ReadData();
    void SaveData();

    void ReadMiscellaneous();
    void SaveMiscellaneous();
public:
    Config();
    ~Config();

    void Reload();
    void Save();
};