benilla-re systems structs docs

s_cycleCustomizationCases

global · glue

Address
0x47106c · 20 bytes, up to 0x47107f
Type
void *[5]
Meaning
Holds the five case addresses of the customization cycle 0x470f80, skin to facial hair
Confidence
verified, proof one
Finding
glue/create#cycling-a-customization

Finding: Cycling a customization in glue: character create

CycleCharCustomization(index, delta) moves customization index by delta. A delta of 0 or an index outside 1 to 5 does nothing. The current value plus the delta, as a signed 32-bit sum, becomes count − 1 when negative, then 0 when at or above the count, and goes to the setter. Hair colour counts the current style's colours.

indexfieldcountsetter
1 skin+0x240x47a4400x478790(v, 1)
2 face+0x2c0x47a4a00x4785b0(v, 1)
3 hair style+0x340x47a3e00x4784c0(v)
4 hair colour+0x200x47a4000x4783f0(v, 1)
5 facial hair+0x300x47a4c00x478660(v, 1)

The derivation is in the doc.