benilla-re systems structs docs

CycleCreateCustomization

function · glue · primitive

Address
0x470f80 · 233 bytes, up to 0x471068
Signature
void __fastcall (uint32_t which, int32_t delta)
Meaning
Moves one of five customizations by a delta: below 0 to the last value, at or past the count to 0
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.

Callers 1

Callees 10

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