MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / PartitionSpaceInsert

Function PartitionSpaceInsert

src/SB/Core/x/xPartition.cpp:19–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19static void PartitionSpaceInsert(_tagPartSpace* space, void* data)
20{
21 space->total++;
22 _tagPartLink* head = &space->head;
23 _tagPartLink* tmp = head;
24 while (tmp->next != NULL)
25 {
26 tmp = tmp->next;
27 }
28 head = PartitionGetFreeLink();
29 tmp->next = head;
30 tmp->next->data = data;
31 tmp->next->next = NULL;
32}
33
34S32 xPartitionGetTrueIdx(_tagPartition* part, S32 x_spaces, S32 y_spaces, S32 z_spaces)
35{

Callers 1

xPartitionInsertFunction · 0.85

Calls 1

PartitionGetFreeLinkFunction · 0.85

Tested by

no test coverage detected