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

Function AddFile

engine/resource/src/resource.cpp:1556–1560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1554}
1555
1556Result AddFile(HFactory factory, const char* path, uint32_t size, const void* resource)
1557{
1558 dmResourceMounts::HContext mounts = GetMountsContext(factory);
1559 return dmResourceMounts::AddFile(mounts, dmHashString64(path), size, resource);
1560}
1561
1562Result RemoveFile(HFactory factory, const char* path)
1563{

Callers 3

ResourceAddFileFunction · 0.70
TEST_FFunction · 0.50
TEST_FFunction · 0.50

Calls 1

GetMountsContextFunction · 0.85

Tested by 2

TEST_FFunction · 0.40
TEST_FFunction · 0.40