summaryrefslogtreecommitdiffstats
path: root/src/yuzu_cmd
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-07-07 07:22:01 +0200
committerGitHub <noreply@github.com>2022-07-07 07:22:01 +0200
commitec4cba9de8649dff65acfeabaf8ff02a89894802 (patch)
treea5874596aec2534712874e7a5d72cf07ae25bac3 /src/yuzu_cmd
parentMerge pull request #8486 from liushuyu/github-actions-verify (diff)
parentsettings: Consolidate RangedSetting's with regular ones (diff)
downloadyuzu-ec4cba9de8649dff65acfeabaf8ff02a89894802.tar
yuzu-ec4cba9de8649dff65acfeabaf8ff02a89894802.tar.gz
yuzu-ec4cba9de8649dff65acfeabaf8ff02a89894802.tar.bz2
yuzu-ec4cba9de8649dff65acfeabaf8ff02a89894802.tar.lz
yuzu-ec4cba9de8649dff65acfeabaf8ff02a89894802.tar.xz
yuzu-ec4cba9de8649dff65acfeabaf8ff02a89894802.tar.zst
yuzu-ec4cba9de8649dff65acfeabaf8ff02a89894802.zip
Diffstat (limited to 'src/yuzu_cmd')
-rw-r--r--src/yuzu_cmd/config.cpp6
-rw-r--r--src/yuzu_cmd/config.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp
index fc4744fb0..903e02297 100644
--- a/src/yuzu_cmd/config.cpp
+++ b/src/yuzu_cmd/config.cpp
@@ -90,17 +90,17 @@ static const std::array<std::array<int, 5>, Settings::NativeAnalog::NumAnalogs>
}};
template <>
-void Config::ReadSetting(const std::string& group, Settings::BasicSetting<std::string>& setting) {
+void Config::ReadSetting(const std::string& group, Settings::Setting<std::string>& setting) {
setting = sdl2_config->Get(group, setting.GetLabel(), setting.GetDefault());
}
template <>
-void Config::ReadSetting(const std::string& group, Settings::BasicSetting<bool>& setting) {
+void Config::ReadSetting(const std::string& group, Settings::Setting<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) {
+void Config::ReadSetting(const std::string& group, Settings::Setting<Type>& setting) {
setting = static_cast<Type>(sdl2_config->GetInteger(group, setting.GetLabel(),
static_cast<long>(setting.GetDefault())));
}
diff --git a/src/yuzu_cmd/config.h b/src/yuzu_cmd/config.h
index f61ba23ec..ccf77d668 100644
--- a/src/yuzu_cmd/config.h
+++ b/src/yuzu_cmd/config.h
@@ -28,11 +28,11 @@ public:
private:
/**
- * Applies a value read from the sdl2_config to a BasicSetting.
+ * Applies a value read from the sdl2_config to a Setting.
*
* @param group The name of the INI group
* @param setting The yuzu setting to modify
*/
template <typename Type>
- void ReadSetting(const std::string& group, Settings::BasicSetting<Type>& setting);
+ void ReadSetting(const std::string& group, Settings::Setting<Type>& setting);
};