diff options
author | pineappleEA <pineaea@gmail.com> | 2024-02-11 20:46:35 +0100 |
---|---|---|
committer | pineappleEA <pineaea@gmail.com> | 2024-02-11 20:46:35 +0100 |
commit | 9d83e9ad1b1431b81fab4b5bc84d3e9c1462d933 (patch) | |
tree | e3265155758e01acd13a724675c0b61c1d9ba0b1 | |
parent | 53f2e2f45271a551c0e8ee48ce9604580eeab12d (diff) |
early-access version 4132EA-4132
-rwxr-xr-x | README.md | 2 | ||||
-rwxr-xr-x | src/frontend_common/config.cpp | 10 |
2 files changed, 3 insertions, 9 deletions
@@ -1,7 +1,7 @@ | |||
1 | yuzu emulator early access | 1 | yuzu emulator early access |
2 | ============= | 2 | ============= |
3 | 3 | ||
4 | This is the source code for early-access 4131. | 4 | This 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 | ||
887 | void Config::ClearControlPlayerValues() const { | 887 | void 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 | ||
899 | const std::string& Config::GetConfigFilePath() const { | 893 | const std::string& Config::GetConfigFilePath() const { |