REDIVIVUS

Proposals / #1189

Mac SKILL_InitTransportPath: BOOL __fastcc (D2UnitStrc* pUnit ECX, D2SkillStrc* pSkill EDX)

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

Mac 0x00252499 is "undefined (void)", convention unknown. Entry: ECX saved to [EBP-0x14] and read as the unit ([ECX+0x2c] dynamic path; later eUnitType, nClassId, PATH_CalculatePath(path, unit, 0)); EBX=EDX passed as [ESP] to SKILL_SetFlags(…,0x1101), SKILL_GetParam1/2 (the skill); no [EBP+n] reads; returns 0/1 in EAX; plain RET. Caller Skills_SrvDoFunc_077_Leap loads ECX=EDI, EDX=EBX and stores EAX into ESI (0x00251eec-0x00251ef5). Same two values as Windows twin 0x005d9f70 BOOL (D2SkillStrc* pSkill, D2UnitStrc* pUnit).

Changes 1, applied together

  1. Set prototype mac 0x00252499

    signatureundefined SKILL_InitTransportPath(void)→BOOL SKILL_InitTransportPath(D2UnitStrc * pUnit, D2SkillStrc * pSkill)
    conventionunknown→__fastcc