diff options
author | bunnei <bunneidev@gmail.com> | 2021-07-16 00:03:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-16 00:03:11 +0200 |
commit | 3cd3230295a4752c57df1364bc14b17ffdcde762 (patch) | |
tree | d94ce6ea5cf9d5d7ff384454ffe7203bd31774c8 /src/yuzu_cmd/config.cpp | |
parent | Merge pull request #6635 from ameerj/intel-vk-sm3dw (diff) | |
parent | configure_input: Use u8 for mouse sensitivity (diff) | |
download | yuzu-3cd3230295a4752c57df1364bc14b17ffdcde762.tar yuzu-3cd3230295a4752c57df1364bc14b17ffdcde762.tar.gz yuzu-3cd3230295a4752c57df1364bc14b17ffdcde762.tar.bz2 yuzu-3cd3230295a4752c57df1364bc14b17ffdcde762.tar.lz yuzu-3cd3230295a4752c57df1364bc14b17ffdcde762.tar.xz yuzu-3cd3230295a4752c57df1364bc14b17ffdcde762.tar.zst yuzu-3cd3230295a4752c57df1364bc14b17ffdcde762.zip |
Diffstat (limited to 'src/yuzu_cmd/config.cpp')
-rw-r--r-- | src/yuzu_cmd/config.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp index 325584a1a..23ada3f92 100644 --- a/src/yuzu_cmd/config.cpp +++ b/src/yuzu_cmd/config.cpp @@ -242,17 +242,15 @@ static const std::array<int, 8> keyboard_mods{ }; template <> -void Config::ReadSetting(const std::string& group, Settings::BasicSetting<float>& setting) { - setting = sdl2_config->GetReal(group, setting.GetLabel(), setting.GetDefault()); -} -template <> void Config::ReadSetting(const std::string& group, Settings::BasicSetting<std::string>& setting) { setting = sdl2_config->Get(group, setting.GetLabel(), setting.GetDefault()); } + template <> void Config::ReadSetting(const std::string& group, Settings::BasicSetting<bool>& setting) { setting = sdl2_config->GetBoolean(group, setting.GetLabel(), setting.GetDefault()); } + template <typename Type> void Config::ReadSetting(const std::string& group, Settings::BasicSetting<Type>& setting) { setting = static_cast<Type>(sdl2_config->GetInteger(group, setting.GetLabel(), |