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

Method getStringValue

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

Source from the content-addressed store, hash-verified

550}
551
552std::optional<std::string> SettingsWindow::getStringValue(
553 const char* section, const char* key, std::optional<const char*> default_value) const
554{
555 std::optional<std::string> value;
556 if (m_sif)
557 {
558 std::string svalue;
559 if (m_sif->GetStringValue(section, key, &svalue))
560 value = std::move(svalue);
561 else if (default_value.has_value())
562 value = default_value.value();
563 }
564 else
565 {
566 value = Host::GetBaseStringSettingValue(section, key, default_value.value_or(""));
567 }
568
569 return value;
570}
571
572void SettingsWindow::setBoolSettingValue(const char* section, const char* key, std::optional<bool> value)
573{

Callers 13

DEV9SettingsWidgetMethod · 0.45
onEthIPChangedMethod · 0.45
showEventMethod · 0.45
LoadAdaptersMethod · 0.45
ListHostsConfigMethod · 0.45
DeleteHostConfigMethod · 0.45
populateDetailsMethod · 0.45
populateDiscPathMethod · 0.45
onTypeChangedMethod · 0.45
populatePagesMethod · 0.45
linkButtonMethod · 0.45

Calls 2

GetStringValueMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected