summaryrefslogtreecommitdiffstats
path: root/src/yuzu_cmd
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-07-16 00:03:11 +0200
committerGitHub <noreply@github.com>2021-07-16 00:03:11 +0200
commit3cd3230295a4752c57df1364bc14b17ffdcde762 (patch)
treed94ce6ea5cf9d5d7ff384454ffe7203bd31774c8 /src/yuzu_cmd
parentMerge pull request #6635 from ameerj/intel-vk-sm3dw (diff)
parentconfigure_input: Use u8 for mouse sensitivity (diff)
downloadyuzu-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')
-rw-r--r--src/yuzu_cmd/config.cpp6
-rw-r--r--src/yuzu_cmd/default_ini.h4
2 files changed, 4 insertions, 6 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(),
diff --git a/src/yuzu_cmd/default_ini.h b/src/yuzu_cmd/default_ini.h
index cc9850aad..7d6bcccc7 100644
--- a/src/yuzu_cmd/default_ini.h
+++ b/src/yuzu_cmd/default_ini.h
@@ -232,7 +232,7 @@ use_vsync =
use_caches_gc =
# The clear color for the renderer. What shows up on the sides of the bottom screen.
-# Must be in range of 0.0-1.0. Defaults to 1.0 for all.
+# Must be in range of 0-255. Defaults to 0 for all.
bg_red =
bg_blue =
bg_green =
@@ -281,7 +281,7 @@ enable_audio_stretching =
output_device =
# Output volume.
-# 1.0 (default): 100%, 0.0; mute
+# 100 (default): 100%, 0; mute
volume =
[Data Storage]