REDIVIVUS

Proposals / #1206

Mac Q33_SpawnPortalNearAnya: BOOL __cdecl (D2GameStrc* pGame, D2UnitStrc* pUnit) prototype

approved · by KierTaylor · submitted 2026-11-05, approved 2026-11-05

Mac 0x0023ebb4 is "undefined (void)", convention unknown. Stack reads are exactly [EBP+8] (pGame: passed with 0x21 to GetQuestDataByQuestNoInternal at 0x0023ebcb, again at 0x0023eccb) and [EBP+0xc] (unit, 0x0023ebff); no ECX/EDX on entry; returns [EBP-0x1c] (0 or 1) in EAX; plain RET 0x0023ed2b. Matches Windows twin 0x0058a820 BOOL Q33_SpawnPortalNearAnya(pGame, D2UnitStrc* pUnit).

Changes 1, applied together

  1. Set prototype mac 0x0023ebb4

    signatureundefined Q33_SpawnPortalNearAnya(void)→BOOL Q33_SpawnPortalNearAnya(D2GameStrc * pGame, D2UnitStrc * pUnit)
    conventionunknown→__cdecl