REDIVIVUS

Proposals / #1221

Mac ITEMMODE_GetItemPageForUnit: void __fastcc (pUnit ECX, pItem EDX, nUpdateType stack)

checked · by KierTaylor · submitted 2026-11-05

Mac 0x001b75f8 is "undefined (void)", convention unknown. Entry: EDI=EDX (item: passed to UNITS_GetRoom 0x0018f1ae, its type/GUID [EDI]/[EDI+0xc], flag +0xc5 set), ESI=ECX (player: args 1 and 3 of 0x0027976c at 0x001b768c), EBX=[EBP+8] used as a word (MOVZX EAX,BX) update type. [EBP+8] is the only stack read; no result; plain RET 0x001b7698. Same three values as Windows twin 0x0055c9a0 void (int32_t nUpdateType, D2UnitStrc* pUnit, D2UnitStrc* pUnit2), in Mac register order.

Changes 1, applied together

  1. Set prototype mac 0x001b75f8

    signatureundefined ITEMMODE_GetItemPageForUnit(void)→void ITEMMODE_GetItemPageForUnit(D2UnitStrc * pUnit, D2UnitStrc * pItem, int32_t nUpdateType)
    conventionunknown→__fastcc