2016-07-29 18:15:49 +05:30
|
|
|
|
// Copyright 2014 Citra Emulator Project
|
2014-12-17 11:08:14 +05:30
|
|
|
|
// Licensed under GPLv2 or any later version
|
2014-09-13 05:36:13 +05:30
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2016-09-18 06:08:01 +05:30
|
|
|
|
#include <string>
|
2016-09-20 20:51:23 +05:30
|
|
|
|
#include <QVariant>
|
2016-07-29 18:15:49 +05:30
|
|
|
|
#include "core/settings.h"
|
2014-09-13 05:36:13 +05:30
|
|
|
|
|
2015-06-21 19:28:59 +05:30
|
|
|
|
class QSettings;
|
2014-09-13 05:36:13 +05:30
|
|
|
|
|
|
|
|
|
class Config {
|
|
|
|
|
QSettings* qt_config;
|
|
|
|
|
std::string qt_config_loc;
|
|
|
|
|
|
2014-11-16 01:26:18 +05:30
|
|
|
|
void ReadValues();
|
|
|
|
|
void SaveValues();
|
2016-09-18 06:08:01 +05:30
|
|
|
|
|
2014-09-13 05:36:13 +05:30
|
|
|
|
public:
|
|
|
|
|
Config();
|
|
|
|
|
~Config();
|
|
|
|
|
|
|
|
|
|
void Reload();
|
|
|
|
|
void Save();
|
2016-07-29 18:15:49 +05:30
|
|
|
|
static const std::array<QVariant, Settings::NativeInput::NUM_INPUTS> defaults;
|
2014-09-13 05:36:13 +05:30
|
|
|
|
};
|