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

Method getIntValue

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

Source from the content-addressed store, hash-verified

512}
513
514std::optional<int> SettingsWindow::getIntValue(const char* section, const char* key, std::optional<int> default_value) const
515{
516 std::optional<int> value;
517 if (m_sif)
518 {
519 int ivalue;
520 if (m_sif->GetIntValue(section, key, &ivalue))
521 value = ivalue;
522 else
523 value = default_value;
524 }
525 else
526 {
527 value = Host::GetBaseIntSettingValue(section, key, default_value.value_or(0));
528 }
529
530 return value;
531}
532
533std::optional<float> SettingsWindow::getFloatValue(const char* section, const char* key, std::optional<float> default_value) const
534{

Callers 6

onEthHostPerGameMethod · 0.45
CountHostsConfigMethod · 0.45
ListHostsConfigMethod · 0.45
populatePagesMethod · 0.45

Calls 1

GetIntValueMethod · 0.45

Tested by

no test coverage detected