| 512 | } |
| 513 | |
| 514 | std::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 | |
| 533 | std::optional<float> SettingsWindow::getFloatValue(const char* section, const char* key, std::optional<float> default_value) const |
| 534 | { |
no test coverage detected