From 9d83e9ad1b1431b81fab4b5bc84d3e9c1462d933 Mon Sep 17 00:00:00 2001 From: pineappleEA Date: Sun, 11 Feb 2024 20:46:35 +0100 Subject: [PATCH] early-access version 4132 --- README.md | 2 +- src/frontend_common/config.cpp | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index c3593199b..5bb2c9dd8 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ yuzu emulator early access ============= -This is the source code for early-access 4131. +This is the source code for early-access 4132. ## Legal Notice diff --git a/src/frontend_common/config.cpp b/src/frontend_common/config.cpp index cbbb07ac7..2bebfeef9 100755 --- a/src/frontend_common/config.cpp +++ b/src/frontend_common/config.cpp @@ -885,15 +885,9 @@ void Config::Reload() { } void Config::ClearControlPlayerValues() const { - // If key is an empty string, all keys in the current group() are removed. + // Removes the entire [Controls] section const char* section = Settings::TranslateCategory(Settings::Category::Controls); - CSimpleIniA::TNamesDepend keys; - config->GetAllKeys(section, keys); - for (const auto& key : keys) { - if (std::string(config->GetValue(section, key.pItem)).empty()) { - config->Delete(section, key.pItem); - } - } + config->Delete(section, nullptr, true); } const std::string& Config::GetConfigFilePath() const {