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

Function PreloadHintInternal

engine/resource/src/resource_preloader.cpp:395–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393 }
394
395 static Result PreloadHintInternal(HPreloader preloader, TRequestIndex parent, const char* name)
396 {
397 PathDescriptor path_descriptor;
398 Result res = MakePathDescriptor(preloader, name, path_descriptor);
399 if (res != RESULT_OK)
400 {
401 return res;
402 }
403 res = PreloadPathDescriptor(preloader, parent, path_descriptor);
404 return res;
405 }
406
407 // Only supports removing the first child, which is all the preloader uses anyway.
408 static void PreloaderRemoveLeaf(ResourcePreloader* preloader, TRequestIndex index)

Callers 1

NewPreloaderFunction · 0.85

Calls 2

MakePathDescriptorFunction · 0.85
PreloadPathDescriptorFunction · 0.85

Tested by

no test coverage detected