summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2022-11-27 03:09:08 +0100
committergerman77 <juangerman-13@hotmail.com>2022-11-28 03:43:34 +0100
commitaaada241dccebb94287342d498d7ca538e42be68 (patch)
tree23611eb2255d1f3e2bea880fc023d0cec4e3de50 /src
parentMerge pull request #9288 from vonchenplus/deferred_draw (diff)
downloadyuzu-aaada241dccebb94287342d498d7ca538e42be68.tar
yuzu-aaada241dccebb94287342d498d7ca538e42be68.tar.gz
yuzu-aaada241dccebb94287342d498d7ca538e42be68.tar.bz2
yuzu-aaada241dccebb94287342d498d7ca538e42be68.tar.lz
yuzu-aaada241dccebb94287342d498d7ca538e42be68.tar.xz
yuzu-aaada241dccebb94287342d498d7ca538e42be68.tar.zst
yuzu-aaada241dccebb94287342d498d7ca538e42be68.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu_cmd/config.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp
index 66dd0dc15..70ab7276c 100644
--- a/src/yuzu_cmd/config.cpp
+++ b/src/yuzu_cmd/config.cpp
@@ -90,7 +90,11 @@ static const std::array<std::array<int, 5>, Settings::NativeAnalog::NumAnalogs>
template <>
void Config::ReadSetting(const std::string& group, Settings::Setting<std::string>& setting) {
- setting = sdl2_config->Get(group, setting.GetLabel(), setting.GetDefault());
+ std::string setting_value = sdl2_config->Get(group, setting.GetLabel(), setting.GetDefault());
+ if (setting_value.empty()) {
+ setting_value = setting.GetDefault();
+ }
+ setting = std::move(setting_value);
}
template <>