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

Function AddMountInternal

engine/resource/src/resource_mounts.cpp:105–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105static void AddMountInternal(HContext ctx, const ArchiveMount& mount)
106{
107 DM_MUTEX_SCOPED_LOCK(ctx->m_Mutex);
108
109 if (ctx->m_Mounts.Full())
110 ctx->m_Mounts.OffsetCapacity(2);
111
112 ctx->m_Mounts.Push(mount);
113 SortMounts(ctx->m_Mounts);
114
115 DM_RESOURCE_DBG_LOG(1, "Added archive %p with prio %d\n", mount.m_Archive, mount.m_Priority);
116}
117
118static void DebugPrintMount(int level, const ArchiveMount& mount)
119{

Callers 1

AddMountFunction · 0.85

Calls 4

SortMountsFunction · 0.85
FullMethod · 0.45
OffsetCapacityMethod · 0.45
PushMethod · 0.45

Tested by

no test coverage detected