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

Function MountArchiveInternal

engine/resource/src/mount/mount_generic.cpp:60–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 }
59
60 Result MountArchiveInternal(const char* index_path, const char* data_path, dmResourceArchive::HArchiveIndexContainer* archive, void** mount_info)
61 {
62 *mount_info = 0;
63 dmResourceArchive::Result r = LoadArchiveFromFile(index_path, data_path, archive);
64 if (r != dmResourceArchive::RESULT_OK)
65 {
66 if (r == dmResourceArchive::RESULT_VERSION_MISMATCH)
67 return RESULT_VERSION_MISMATCH;
68 return RESULT_RESOURCE_NOT_FOUND;
69 }
70 return RESULT_OK;
71 }
72
73 void UnmountArchiveInternal(dmResourceArchive::HArchiveIndexContainer& archive, void* mount_info)
74 {

Callers

nothing calls this directly

Calls 1

LoadArchiveFromFileFunction · 0.85

Tested by

no test coverage detected