Browse Source
Merge pull request #9325 from german77/default_by_default
yuzu-cmd: Fix default config value
pull/15/merge
liamwhite
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
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 <> |
|
|
|
|