MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / setStringSettingValue

Method setStringSettingValue

pcsx2-qt/Settings/SettingsWindow.cpp:617–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

615}
616
617void 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
632bool SettingsWindow::containsSettingValue(const char* section, const char* key) const
633{

Callers 13

onAdapterChangedMethod · 0.80
onEthDeviceChangedMethod · 0.80
onEthIPChangedMethod · 0.80
onEthHostEditMethod · 0.80
onHddFileEditMethod · 0.80
AddNewHostConfigMethod · 0.80
DeleteHostConfigMethod · 0.80
onInputProfileChangedMethod · 0.80
onDiscPathChangedMethod · 0.80
tryInsertCardMethod · 0.80
ejectSlotMethod · 0.80

Calls 4

applySettingsMethod · 0.80
SetStringValueMethod · 0.45
valueMethod · 0.45
DeleteValueMethod · 0.45

Tested by

no test coverage detected