summaryrefslogtreecommitdiffstats
path: root/src/yuzu_cmd/config.cpp
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-07-09 04:04:24 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-09 04:04:24 +0200
commitf9139ddab78d5995c981228c33e32c52a22170df (patch)
treec90ce7378e0361a0a4b3ce2d5e9b211b084bf551 /src/yuzu_cmd/config.cpp
parentconfigure_graphics: Use u8 for bg_color values (diff)
downloadyuzu-f9139ddab78d5995c981228c33e32c52a22170df.tar
yuzu-f9139ddab78d5995c981228c33e32c52a22170df.tar.gz
yuzu-f9139ddab78d5995c981228c33e32c52a22170df.tar.bz2
yuzu-f9139ddab78d5995c981228c33e32c52a22170df.tar.lz
yuzu-f9139ddab78d5995c981228c33e32c52a22170df.tar.xz
yuzu-f9139ddab78d5995c981228c33e32c52a22170df.tar.zst
yuzu-f9139ddab78d5995c981228c33e32c52a22170df.zip
Diffstat (limited to '')
-rw-r--r--src/yuzu_cmd/config.cpp6
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(),