benilla-re systems structs docs

CloseMerchantWindow

function · ui · primitive

Address
0x4fadf0 · 126 bytes, up to 0x4fae6d
Signature
void __cdecl (void)
Meaning
Closes the vendor session, signals MERCHANT_CLOSED and drops a vendor payload
Confidence
verified, proof one
Finding
ui/merchantcursor#merchant-close

Finding: Merchant close in ui: the vendor cursors

CloseMerchant() runs 0x4fadf0. With a vendor open it clears the interaction unit, zeroes the vendor GUID and the item count, and signals event 0x13e (MERCHANT_CLOSED). Then, whether or not a vendor was open, it clears a held kind 5 preview, and returns the base cursor to Point (1) when it was the repair cursor (17).

The derivation is in the doc.

Callers 3

Callees 7

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