| 140 | } |
| 141 | |
| 142 | bool INISettingsInterface::GetIntValue(const char* section, const char* key, int* value) const |
| 143 | { |
| 144 | const char* str_value = m_ini.GetValue(section, key); |
| 145 | if (!str_value) |
| 146 | return false; |
| 147 | |
| 148 | std::optional<int> parsed_value = StringUtil::FromChars<int>(str_value, 10); |
| 149 | if (!parsed_value.has_value()) |
| 150 | return false; |
| 151 | |
| 152 | *value = parsed_value.value(); |
| 153 | return true; |
| 154 | } |
| 155 | |
| 156 | bool INISettingsInterface::GetUIntValue(const char* section, const char* key, uint* value) const |
| 157 | { |
no test coverage detected