diff options
author | Zach Hilman <zachhilman@gmail.com> | 2019-03-25 20:30:36 -0400 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-06-10 00:03:11 -0400 |
commit | 819006d0d3232d66d303daabe701ca031e4caeae (patch) | |
tree | 536d1a37cc7bd0f578bfdf5f8d32d81e9d6625c4 /src/yuzu_tester/config.h | |
parent | c508a8d82af08db6cbc38af0611e2b461a39b3f2 (diff) |
yuzu_tester: Use config, icon, and main from yuzu-cmd
Diffstat (limited to 'src/yuzu_tester/config.h')
-rw-r--r-- | src/yuzu_tester/config.h | 24 |
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(); +}; |