From b556d6868361e386ada0aa5d2971aa917e819eb5 Mon Sep 17 00:00:00 2001 From: pineappleEA Date: Mon, 28 Nov 2022 16:00:55 +0100 Subject: [PATCH] early-access version 3164 --- README.md | 2 +- src/yuzu_cmd/config.cpp | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e5ddb7d26..38efe773d 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ yuzu emulator early access ============= -This is the source code for early-access 3163. +This is the source code for early-access 3164. ## Legal Notice diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp index 68620ee2f..b9c6f1090 100755 --- a/src/yuzu_cmd/config.cpp +++ b/src/yuzu_cmd/config.cpp @@ -90,7 +90,11 @@ static const std::array, Settings::NativeAnalog::NumAnalogs> template <> void Config::ReadSetting(const std::string& group, Settings::Setting& 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 <>