| 168 | } |
| 169 | |
| 170 | bool INISettingsInterface::GetFloatValue(const char* section, const char* key, float* value) const |
| 171 | { |
| 172 | const char* str_value = m_ini.GetValue(section, key); |
| 173 | if (!str_value) |
| 174 | return false; |
| 175 | |
| 176 | std::optional<float> parsed_value = StringUtil::FromChars<float>(str_value); |
| 177 | if (!parsed_value.has_value()) |
| 178 | return false; |
| 179 | |
| 180 | *value = parsed_value.value(); |
| 181 | return true; |
| 182 | } |
| 183 | |
| 184 | bool INISettingsInterface::GetDoubleValue(const char* section, const char* key, double* value) const |
| 185 | { |
no test coverage detected