MCPcopy Create free account
hub / github.com/defold/defold / GetFloatOverride

Function GetFloatOverride

engine/dlib/src/dlib/configfile.cpp:162–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162static 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

Callers 1

ConfigFileGetFloatFunction · 0.85

Calls 1

GetFirstExtensionFunction · 0.70

Tested by

no test coverage detected