summaryrefslogtreecommitdiff
path: root/src/yuzu_cmd/config.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-03-19 01:33:50 -0700
committerGitHub <noreply@github.com>2022-03-19 01:33:50 -0700
commit17ebe211ec965f1e108c5dd076d3ac18ca831cc3 (patch)
treeb8d0daeb1f34598d9cf7a81ed7367ec265e4c36b /src/yuzu_cmd/config.h
parent8c8b5359f291fd78d5e3028c4287daf7230227e7 (diff)
parent24d51e1c925896e18e4536916b8c80f0b41e54fb (diff)
Merge pull request #8025 from lat9nq/cmd-specify-config
yuzu_cmd: Allow user to specify config file location
Diffstat (limited to 'src/yuzu_cmd/config.h')
-rw-r--r--src/yuzu_cmd/config.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/yuzu_cmd/config.h b/src/yuzu_cmd/config.h
index 1ee932be2..f61ba23ec 100644
--- a/src/yuzu_cmd/config.h
+++ b/src/yuzu_cmd/config.h
@@ -6,6 +6,7 @@
#include <filesystem>
#include <memory>
+#include <optional>
#include <string>
#include "common/settings.h"
@@ -13,14 +14,14 @@
class INIReader;
class Config {
- std::unique_ptr<INIReader> sdl2_config;
std::filesystem::path sdl2_config_loc;
+ std::unique_ptr<INIReader> sdl2_config;
bool LoadINI(const std::string& default_contents = "", bool retry = true);
void ReadValues();
public:
- Config();
+ explicit Config(std::optional<std::filesystem::path> config_path);
~Config();
void Reload();