REDIVIVUS

Proposals / #1425

Mac SUNITPROXY_InitNpcTradeItems: void __fastcc (D2GameStrc* pGame ECX, void** pTradeList EDX, int32_t nNpcTableIdx)

checked · by KierTaylor · submitted 2026-11-08

Resubmit of #1273 with the two changes the reviewer asked for: the __fastcc convention, and pTradeList typed void** as in the Windows twin 0x00535fb0. ECX = pGame, EDX -> ESI = the trade-list block, [EBP+8] = the NPC table index. Callers are at 0x0028be10 and 0x0028be39.

Changes 1, applied together

  1. Set prototype mac 0x0028bf48

    signatureundefined SUNITPROXY_InitNpcTradeItems(void)→void SUNITPROXY_InitNpcTradeItems(D2GameStrc* pGame, void** pTradeList, int32_t nNpcTableIdx)
    conventionunknown→__fastcc