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

Function ModuleLoaded

engine/script/src/script_module.cpp:204–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202 }
203
204 bool ModuleLoaded(HContext context, const char* script_name)
205 {
206 dmhash_t module_hash = dmHashString64(script_name);
207 return context->m_Modules.Get(module_hash) != 0;
208 }
209
210 bool ModuleLoaded(HContext context, dmhash_t path_hash)
211 {

Callers 2

RegisterSubModulesFunction · 0.85
TEST_FFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by 1

TEST_FFunction · 0.68