summaryrefslogtreecommitdiffstats
path: root/src/yuzu_cmd/config.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-07-17 00:32:52 +0200
committerGitHub <noreply@github.com>2022-07-17 00:32:52 +0200
commit7d66f8339e4243c74c54b43cfbc3e944fbecb3e8 (patch)
tree87768226bd5f30bc8b980eb07ef6f94b6878c5c5 /src/yuzu_cmd/config.cpp
parentMerge pull request #8594 from liamwhite/skip-wp (diff)
parentcommon/setting: Make ranged a property of the type (diff)
downloadyuzu-7d66f8339e4243c74c54b43cfbc3e944fbecb3e8.tar
yuzu-7d66f8339e4243c74c54b43cfbc3e944fbecb3e8.tar.gz
yuzu-7d66f8339e4243c74c54b43cfbc3e944fbecb3e8.tar.bz2
yuzu-7d66f8339e4243c74c54b43cfbc3e944fbecb3e8.tar.lz
yuzu-7d66f8339e4243c74c54b43cfbc3e944fbecb3e8.tar.xz
yuzu-7d66f8339e4243c74c54b43cfbc3e944fbecb3e8.tar.zst
yuzu-7d66f8339e4243c74c54b43cfbc3e944fbecb3e8.zip
Diffstat (limited to 'src/yuzu_cmd/config.cpp')
-rw-r--r--src/yuzu_cmd/config.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp
index 903e02297..9db7115a2 100644
--- a/src/yuzu_cmd/config.cpp
+++ b/src/yuzu_cmd/config.cpp
@@ -99,8 +99,8 @@ void Config::ReadSetting(const std::string& group, Settings::Setting<bool>& sett
setting = sdl2_config->GetBoolean(group, setting.GetLabel(), setting.GetDefault());
}
-template <typename Type>
-void Config::ReadSetting(const std::string& group, Settings::Setting<Type>& setting) {
+template <typename Type, bool ranged>
+void Config::ReadSetting(const std::string& group, Settings::Setting<Type, ranged>& setting) {
setting = static_cast<Type>(sdl2_config->GetInteger(group, setting.GetLabel(),
static_cast<long>(setting.GetDefault())));
}