benilla-re systems structs docs

s_switch5fdd7c

global · objectlayer

Address
0x5fdd7c · 20 bytes, up to 0x5fdd8f
Type
void *[5]
Meaning
Holds the 5 case addresses of the switch in 0x5fdba0
Confidence
verified, proof one
Finding
objectlayer/overview#indexed-switch-tables

Finding: Indexed switch tables in objectlayer: overview

Seven switches read a byte table first, which maps the switch value to a case of the dword table just before it. The byte table's length is the bounds check plus one; the dword table has as many entries as the byte table's largest value plus one, which is also the gap between the two.

The derivation is in the doc.