summaryrefslogtreecommitdiffstats
path: root/src/yuzu_tester/config.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-03-26 01:30:36 +0100
committerZach Hilman <zachhilman@gmail.com>2019-06-10 06:03:11 +0200
commit819006d0d3232d66d303daabe701ca031e4caeae (patch)
tree536d1a37cc7bd0f578bfdf5f8d32d81e9d6625c4 /src/yuzu_tester/config.h
parentyuzu_tester: Add project subdirectory (diff)
downloadyuzu-819006d0d3232d66d303daabe701ca031e4caeae.tar
yuzu-819006d0d3232d66d303daabe701ca031e4caeae.tar.gz
yuzu-819006d0d3232d66d303daabe701ca031e4caeae.tar.bz2
yuzu-819006d0d3232d66d303daabe701ca031e4caeae.tar.lz
yuzu-819006d0d3232d66d303daabe701ca031e4caeae.tar.xz
yuzu-819006d0d3232d66d303daabe701ca031e4caeae.tar.zst
yuzu-819006d0d3232d66d303daabe701ca031e4caeae.zip
Diffstat (limited to 'src/yuzu_tester/config.h')
-rw-r--r--src/yuzu_tester/config.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/yuzu_tester/config.h b/src/yuzu_tester/config.h
new file mode 100644
index 000000000..3b68e5bc9
--- /dev/null
+++ b/src/yuzu_tester/config.h
@@ -0,0 +1,24 @@
+// Copyright 2019 yuzu Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include <memory>
+#include <string>
+
+class INIReader;
+
+class Config {
+ std::unique_ptr<INIReader> sdl2_config;
+ std::string sdl2_config_loc;
+
+ bool LoadINI(const std::string& default_contents = "", bool retry = true);
+ void ReadValues();
+
+public:
+ Config();
+ ~Config();
+
+ void Reload();
+};