| 196 | } |
| 197 | |
| 198 | bool INISettingsInterface::GetBoolValue(const char* section, const char* key, bool* value) const |
| 199 | { |
| 200 | const char* str_value = m_ini.GetValue(section, key); |
| 201 | if (!str_value) |
| 202 | return false; |
| 203 | |
| 204 | std::optional<bool> parsed_value = StringUtil::FromChars<bool>(str_value); |
| 205 | if (!parsed_value.has_value()) |
| 206 | return false; |
| 207 | |
| 208 | *value = parsed_value.value(); |
| 209 | return true; |
| 210 | } |
| 211 | |
| 212 | bool INISettingsInterface::GetStringValue(const char* section, const char* key, std::string* value) const |
| 213 | { |
no test coverage detected