| 615 | } |
| 616 | |
| 617 | void SettingsWindow::setStringSettingValue(const char* section, const char* key, std::optional<const char*> value) |
| 618 | { |
| 619 | if (m_sif) |
| 620 | { |
| 621 | value.has_value() ? m_sif->SetStringValue(section, key, value.value()) : m_sif->DeleteValue(section, key); |
| 622 | saveAndReloadGameSettings(); |
| 623 | } |
| 624 | else |
| 625 | { |
| 626 | value.has_value() ? Host::SetBaseStringSettingValue(section, key, value.value()) : Host::RemoveBaseSettingValue(section, key); |
| 627 | Host::CommitBaseSettingChanges(); |
| 628 | g_emu_thread->applySettings(); |
| 629 | } |
| 630 | } |
| 631 | |
| 632 | bool SettingsWindow::containsSettingValue(const char* section, const char* key) const |
| 633 | { |
no test coverage detected