| 160 | } |
| 161 | |
| 162 | static bool GetFloatOverride(HConfigFile config, const char* key, float default_value, float* out_value) |
| 163 | { |
| 164 | const ConfigFilePluginDesc* plugin = GetFirstExtension(); |
| 165 | while (plugin != 0) |
| 166 | { |
| 167 | if (plugin->m_GetFloat && plugin->m_GetFloat(config, key, default_value, out_value)) |
| 168 | return true; |
| 169 | plugin = plugin->m_Next; |
| 170 | } |
| 171 | return false; |
| 172 | } |
| 173 | |
| 174 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 175 | // C api |
no test coverage detected