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

Function ResourceExists

engine/resource/src/resource_mounts.cpp:320–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320dmResource::Result ResourceExists(HContext ctx, dmhash_t path_hash)
321{
322 uint32_t resource_size;
323 return GetResourceSize(ctx, path_hash, 0, &resource_size);
324}
325
326dmResource::Result ReadResource(HContext ctx, dmhash_t path_hash, const char* path, uint8_t* buffer, uint32_t buffer_size)
327{

Callers 1

GetDependenciesInternalFunction · 0.70

Calls 1

GetResourceSizeFunction · 0.70

Tested by

no test coverage detected