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

Function GetDescriptorByHash

engine/resource/src/resource.cpp:1380–1389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1378
1379
1380Result GetDescriptorByHash(HFactory factory, dmhash_t path_hash, HResourceDescriptor* descriptor)
1381{
1382 ResourceDescriptor* tmp_descriptor = factory->m_Resources->Get(path_hash);
1383 if (tmp_descriptor)
1384 {
1385 *descriptor = tmp_descriptor;
1386 return RESULT_OK;
1387 }
1388 return RESULT_NOT_LOADED;
1389}
1390
1391Result GetDescriptor(HFactory factory, const char* name, HResourceDescriptor* descriptor)
1392{

Callers 2

GetDescriptorFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected