summaryrefslogtreecommitdiffstats
path: root/src/citra/config.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-10-08 01:44:13 +0200
committerbunnei <bunneidev@gmail.com>2014-10-08 01:44:13 +0200
commita171000cbec1dbae4e5c0c34ea1d7ef1b4313164 (patch)
treea6bc766749aabd4eb8df276749fe51db49ee7030 /src/citra/config.h
parentMerge pull request #129 from linkmauve/master (diff)
parentAdded configuration file system. (diff)
downloadyuzu-a171000cbec1dbae4e5c0c34ea1d7ef1b4313164.tar
yuzu-a171000cbec1dbae4e5c0c34ea1d7ef1b4313164.tar.gz
yuzu-a171000cbec1dbae4e5c0c34ea1d7ef1b4313164.tar.bz2
yuzu-a171000cbec1dbae4e5c0c34ea1d7ef1b4313164.tar.lz
yuzu-a171000cbec1dbae4e5c0c34ea1d7ef1b4313164.tar.xz
yuzu-a171000cbec1dbae4e5c0c34ea1d7ef1b4313164.tar.zst
yuzu-a171000cbec1dbae4e5c0c34ea1d7ef1b4313164.zip
Diffstat (limited to 'src/citra/config.h')
-rw-r--r--src/citra/config.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/citra/config.h b/src/citra/config.h
new file mode 100644
index 000000000..de0570b42
--- /dev/null
+++ b/src/citra/config.h
@@ -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();
+};