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

Method getBoolValue

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

Source from the content-addressed store, hash-verified

493}
494
495std::optional<bool> SettingsWindow::getBoolValue(const char* section, const char* key, std::optional<bool> default_value) const
496{
497 std::optional<bool> value;
498 if (m_sif)
499 {
500 bool bvalue;
501 if (m_sif->GetBoolValue(section, key, &bvalue))
502 value = bvalue;
503 else
504 value = default_value;
505 }
506 else
507 {
508 value = Host::GetBaseBoolSettingValue(section, key, default_value.value_or(false));
509 }
510
511 return value;
512}
513
514std::optional<int> SettingsWindow::getIntValue(const char* section, const char* key, std::optional<int> default_value) const
515{

Callers 6

ListHostsConfigMethod · 0.45
DeleteHostConfigMethod · 0.45
getClampingModeIndexMethod · 0.45
ControllerMacroWidgetMethod · 0.45

Calls 1

GetBoolValueMethod · 0.45

Tested by

no test coverage detected