REDIVIVUS

Proposals / #1449

Mac ITEMMODE_GetItemTypeFlags: void __fastcc (pOwner ECX, pUnit EDX, int32_t* pTypeFlags stack)

checked · by KierTaylor · submitted 2026-11-08

Resubmit of #1224 with args 2 and 3 swapped, as the reviewer asked. EDX is the item (it goes to ITEMS_IsA at 0x001b7bca). The stack slot is the 10-int flag array, zeroed by bzero(...,0x28) at 0x001b7b4f; the caller passes &local_38 at 0x001b7a48. ECX = owner. Plain RET. Windows twin 0x0055d560.

Changes 1, applied together

  1. Set prototype mac 0x001b7b07

    signatureundefined ITEMMODE_GetItemTypeFlags(void)→void ITEMMODE_GetItemTypeFlags(D2UnitStrc* pOwner, D2UnitStrc* pUnit, int32_t* pTypeFlags)
    conventionunknown→__fastcc