REDIVIVUS

Proposals / #1429

Mac SUNITINACTIVE_SaveInactiveUnit: void __fastcc (D2GameStrc* pGame ECX, D2UnitStrc* pUnit EDX)

checked · by KierTaylor · submitted 2026-11-08

Resubmit of #1266 with the Mac register convention __fastcc, as the reviewer asked; parameters are unchanged. ECX -> EDI = pGame, EDX = the unit (type read at [EDX], passed to UNITS_GetRoom). Both callers (0x00282ab1, 0x00282acb) ignore EAX. Windows twin 0x00542e10.

Changes 1, applied together

  1. Set prototype mac 0x00282b50

    signatureundefined SUNITINACTIVE_SaveInactiveUnit(void)→void SUNITINACTIVE_SaveInactiveUnit(D2GameStrc* pGame, D2UnitStrc* pUnit)
    conventionunknown→__fastcc