MCPcopy Create free account
hub / github.com/doldecomp/mkdd / getColor

Function getColor

src/Kameda/ReadPrintMessage.cpp:13–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 Block *mDataPtr;
12
13 u32 getColor(void *bmcPtr, int index)
14 {
15#line 35
16 JUT_ASSERT(bmcPtr != 0);
17
18 BMC *ptr = (BMC *)bmcPtr;
19 JUT_ASSERT(ptr->header.signature == 'MGCL');
20 JUT_ASSERT(ptr->header.dataType == 'bmc1');
21 JUT_ASSERT(ptr->header.dataSize == 1088);
22 JUT_ASSERT(ptr->header.numBlocks == 1);
23 JUT_ASSERT(ptr->colorTable.header.kind == 'CLT1');
24 JUT_ASSERT(ptr->colorTable.numColors == 256);
25 JUT_ASSERT(ptr->colorTable.colorFormat == 0);
26
27 JUT_MINMAX_ASSERT(0, index, 256);
28 return ptr->colorTable.entries[index];
29 }
30
31 void readBmg(void *bmgPtr)
32 {

Callers 2

tagCnvFunction · 0.85
initMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected