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
24
src/citra/config.h
Normal file
24
src/citra/config.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
// Copyright 2014 Citra Emulator Project
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
|
||||
#include <inih/cpp/INIReader.h>
|
||||
|
||||
#include "common/common_types.h"
|
||||
|
||||
class Config {
|
||||
INIReader* glfw_config;
|
||||
std::string glfw_config_loc;
|
||||
|
||||
bool LoadINI(INIReader* config, const char* location, const std::string& default_contents="", bool retry=true);
|
||||
void ReadControls();
|
||||
public:
|
||||
Config();
|
||||
~Config();
|
||||
|
||||
void Reload();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue