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

Function GetIntOverride

engine/dlib/src/dlib/configfile.cpp:134–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134static bool GetIntOverride(HConfigFile config, const char* key, int32_t default_value, int32_t* out_value)
135{
136 const ConfigFilePluginDesc* plugin = GetFirstExtension();
137 while (plugin != 0)
138 {
139 if (plugin->m_GetInt && plugin->m_GetInt(config, key, default_value, out_value))
140 return true;
141 plugin = plugin->m_Next;
142 }
143 return false;
144}
145
146static float GetBaseFloat(HConfigFile config, const char* key, float default_value)
147{

Callers 1

ConfigFileGetIntFunction · 0.85

Calls 1

GetFirstExtensionFunction · 0.70

Tested by

no test coverage detected