benilla-re systems structs docs

ApplyCharacterRename

function · glue · primitive

Address
0x4725f0 · 335 bytes, up to 0x47273e
Signature
void __fastcall (const char *name, uint64_t guid)
Meaning
Moves a renamed character's WTF folders and add-on state to the new name, renames its record and clears flag 0x4000
Confidence
verified, proof one
Finding
glue/select#forced-rename-applier

Finding: Forced rename applier in glue: character select

0x4725f0(name, guid), on the rename reply, finds the guid's record, or does nothing. It moves WTF\Account\<account>\<realm>\<old> to the same path with the new name, then WTF\Account\<account>\<old> likewise (0x42a820, MoveFileW), the account from 0xb41db0 and the realm from GetRealmName. It drops the old name's add-on state (0x51f0b0), loads the new name's (0x51ebe0), copies the name into +0x08 (at most 48 bytes), clears flag 0x4000 and fires CHARACTER_LIST_UPDATE.

The derivation is in the doc.

Callers 1

Callees 7

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