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

Function GetConfigFile

engine/script/src/script_sys.cpp:444–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442 }
443
444 static dmConfigFile::HConfig GetConfigFile(lua_State* L)
445 {
446 HContext context = dmScript::GetScriptContext(L);
447 if (context)
448 {
449 return context->m_ConfigFile;
450 }
451 return 0;
452 }
453
454 /*# get string config value with optional default value
455 * Get string config value from the game.project configuration file with optional default value

Callers 4

Sys_GetConfigStringFunction · 0.70
Sys_GetConfigIntFunction · 0.70
Sys_GetConfigNumberFunction · 0.70
Sys_GetConfigBooleanFunction · 0.70

Calls 1

GetScriptContextFunction · 0.70

Tested by

no test coverage detected