aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xREADME.md2
-rwxr-xr-xsrc/frontend_common/config.cpp10
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 @@
1yuzu emulator early access 1yuzu emulator early access
2============= 2=============
3 3
4This is the source code for early-access 4131. 4This is the source code for early-access 4132.
5 5
6## Legal Notice 6## Legal Notice
7 7
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() {
885} 885}
886 886
887void Config::ClearControlPlayerValues() const { 887void Config::ClearControlPlayerValues() const {
888 // If key is an empty string, all keys in the current group() are removed. 888 // Removes the entire [Controls] section
889 const char* section = Settings::TranslateCategory(Settings::Category::Controls); 889 const char* section = Settings::TranslateCategory(Settings::Category::Controls);
890 CSimpleIniA::TNamesDepend keys; 890 config->Delete(section, nullptr, true);
891 config->GetAllKeys(section, keys);
892 for (const auto& key : keys) {
893 if (std::string(config->GetValue(section, key.pItem)).empty()) {
894 config->Delete(section, key.pItem);
895 }
896 }
897} 891}
898 892
899const std::string& Config::GetConfigFilePath() const { 893const std::string& Config::GetConfigFilePath() const {