Added configuration file system.
Uses QSettings on citra-qt, and inih on citra-cli.
This commit is contained in:
parent
ee7cfc71bd
commit
e6594f9f53
26 changed files with 426 additions and 131 deletions
23
src/citra_qt/config.h
Normal file
23
src/citra_qt/config.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
// 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();
|
||||
public:
|
||||
Config();
|
||||
~Config();
|
||||
|
||||
void Reload();
|
||||
void Save();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue