| 154 | } |
| 155 | |
| 156 | bool INISettingsInterface::GetUIntValue(const char* section, const char* key, uint* value) const |
| 157 | { |
| 158 | const char* str_value = m_ini.GetValue(section, key); |
| 159 | if (!str_value) |
| 160 | return false; |
| 161 | |
| 162 | std::optional<uint> parsed_value = StringUtil::FromChars<uint>(str_value, 10); |
| 163 | if (!parsed_value.has_value()) |
| 164 | return false; |
| 165 | |
| 166 | *value = parsed_value.value(); |
| 167 | return true; |
| 168 | } |
| 169 | |
| 170 | bool INISettingsInterface::GetFloatValue(const char* section, const char* key, float* value) const |
| 171 | { |
no test coverage detected