REDIVIVUS

Proposals / #958

Mac GFX_LoadMonsterModeCof: __fastcc void (D2UnitStrc * pUnit, uint32_t nComponent) (from Windows twin)

applied · by KierTaylor · submitted 2026-11-02, applied 2026-11-02

Ghidra vmac 111 · 3c6740e

Mac body: ECX (ESI) is the unit (null-tested, unit type at +0 and class at +0x4 read, passed to the state-transform lookup); EDX (EDI) is kept as the second input for the COF component load; no [EBP+n] reads anywhere and a single plain RET (0x00069b99). Windows twin GFX_LoadMonsterModeCof 0x0046e8d0 is void (D2UnitStrc * pUnit, uint32_t nComponent); same order on Mac.

Changes 1, applied together

  1. Set prototype mac 0x00069a64

    signatureundefined GFX_LoadMonsterModeCof(void)→void GFX_LoadMonsterModeCof(D2UnitStrc * pUnit, uint32_t nComponent)
    conventionunknown→__fastcc