early-access version 4132

This commit is contained in:
pineappleEA 2024-02-11 20:46:35 +01:00
parent 53f2e2f452
commit 9d83e9ad1b
2 changed files with 3 additions and 9 deletions

View file

@ -1,7 +1,7 @@
yuzu emulator early access yuzu emulator early access
============= =============
This is the source code for early-access 4131. This is the source code for early-access 4132.
## Legal Notice ## Legal Notice

View file

@ -885,15 +885,9 @@ void Config::Reload() {
} }
void Config::ClearControlPlayerValues() const { 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); const char* section = Settings::TranslateCategory(Settings::Category::Controls);
CSimpleIniA::TNamesDepend keys; config->Delete(section, nullptr, true);
config->GetAllKeys(section, keys);
for (const auto& key : keys) {
if (std::string(config->GetValue(section, key.pItem)).empty()) {
config->Delete(section, key.pItem);
}
}
} }
const std::string& Config::GetConfigFilePath() const { const std::string& Config::GetConfigFilePath() const {