REDIVIVUS

Proposals / #1240

Mac HasMercItems: BOOL __fastcc (pGame ECX, pUnit2 EDX, pUnit stack)

checked · by KierTaylor · submitted 2026-11-05

Resubmit of #1211 per review, names matched to the Windows twin 0x005672d0 BOOL (pGame, D2UnitStrc* pUnit2, D2UnitStrc* pUnit). Mac 0x00212e29: ESI=ECX (game, arg 1 of 0x001b6cb1), EDX is the unit whose inventory is walked ([EDX+0x60] at 0x00212e34) = pUnit2, and the stack arg [EBP+8] passed to 0x001b6cb1 at 0x00212e69 = pUnit; returns 0/1.

Changes 1, applied together

  1. Set prototype mac 0x00212e29

    signatureundefined HasMercItems(void)→BOOL HasMercItems(D2GameStrc * pGame, D2UnitStrc * pUnit2, D2UnitStrc * pUnit)
    conventionunknown→__fastcc