benilla-re systems structs docs

SysMsgGetColor

function · sysmsg · primitive

Address
0x44cca0 · 82 bytes, up to 0x44ccf1
Signature
void __fastcall (int level, float *r, float *g, float *b)
Meaning
Stores the level's R, G and B bytes, each times 1/255, as floats
Confidence
verified, proof one
Finding
sysmsg#colour-table
Test
sysmsg::color_lookup_difftest

Finding: Colour table in sysmsg

Four message levels have a colour and a duration, 8 bytes each from 0x835908: bytes R, G, B, a pad byte, then the duration as a float.

levelR, G, Bduration
0255, 255, 25510.0
1255, 255, 12715.0
2255, 127, 12715.0
3127, 255, 25520.0

0x44cca0(level, &r, &g, &b) stores each byte as (float)byte · f32(1/255) (0x3b808081, at 0x8026c8); the product is formed in double and rounded by the 32-bit store. The level is not range-checked. 0x44cd00(level) loads the duration; nothing calls it.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.