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

Function FindLoaderByName

engine/resource/src/providers/provider.cpp:110–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110ArchiveLoader* FindLoaderByName(dmhash_t name_hash)
111{
112 DM_RESOURCE_DBG_LOG(2, "\nFind loader: %s %llx\n", dmHashReverseSafe64(name_hash), name_hash);
113 ArchiveLoader* loader = g_ArchiveLoaders;
114 while (loader)
115 {
116 DM_RESOURCE_DBG_LOG(2, " loader: %s %llx\n", dmHashReverseSafe64(loader->m_NameHash), loader->m_NameHash);
117 if (loader->m_NameHash == name_hash)
118 return loader;
119 loader = loader->m_Next;
120 }
121 DM_RESOURCE_DBG_LOG(2, "\n no loader found for name '%s'\n", dmHashReverseSafe64(name_hash));
122 return 0;
123}
124
125bool CanMountUri(HArchiveLoader loader, const dmURI::Parts* uri)
126{

Callers 14

AddMountProcessFunction · 0.85
AddBuiltinMountFunction · 0.85
NewFactoryFunction · 0.85
TESTFunction · 0.85
SetUpMethod · 0.85
TESTFunction · 0.85
SetUpMethod · 0.85
SetUpMethod · 0.85
TESTFunction · 0.85
SetUpMethod · 0.85
TESTFunction · 0.85
SetUpMethod · 0.85

Calls 1

dmHashReverseSafe64Function · 0.85

Tested by 11

TESTFunction · 0.68
SetUpMethod · 0.68
TESTFunction · 0.68
SetUpMethod · 0.68
SetUpMethod · 0.68
TESTFunction · 0.68
SetUpMethod · 0.68
TESTFunction · 0.68
SetUpMethod · 0.68
TESTFunction · 0.68
SetUpMethod · 0.68