benilla-re systems structs docs

RemoveMail

function · ui · primitive

Address
0x4ad910 · 91 bytes, up to 0x4ad96a
Signature
void __fastcall (uint32_t mailId)
Meaning
Removes a mail from the array, shifts the later records down and signals MAIL_INBOX_UPDATE
Confidence
verified, proof one
Finding
ui/mail#mail-changes-after-a-result

Finding: Mail changes after a result in ui: the mailbox and the inbox

A taken-money result zeroes the money. A taken-item result zeroes the item entry. Each then deletes the mail on its own (opcode 0x249, then CLOSE_INBOX_ITEM with the index) when nothing more can be taken: money taken deletes a COD mail, or an auction mail with no item; item taken deletes an auction mail, or a mail with no text and no template, that has no money left. MAIL_INBOX_UPDATE follows either way. A removed mail shifts the later records down and lowers the count; the made-permanent result only sets flag 4.

The derivation is in the doc.

Callers 1

Callees 1

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