REDIVIVUS

Proposals / #1427

Mac SUNITINACTIVE_AllocInactiveListForRoom: D2InactiveUnitListStrc* __fastcc (pGame, pRoom, bCreate)

checked · by KierTaylor · submitted 2026-11-08

Resubmit of #1269 with the Mac register convention __fastcc, as the reviewer asked; parameters are unchanged. ECX = pGame, EDX = pRoom, [EBP+8] = the create flag. It returns the list pointer, and both callers use it (0x00281847 TEST EAX then reads [EAX+0xc]; 0x00283509). Windows twin 0x00541de0.

Changes 1, applied together

  1. Set prototype mac 0x002839fb

    signatureundefined SUNITINACTIVE_AllocInactiveListForRoom(void)→D2InactiveUnitListStrc* SUNITINACTIVE_AllocInactiveListForRoom(D2GameStrc* pGame, D2RoomStrc* pRoom, int32_t bCreate)
    conventionunknown→__fastcc