Mac SKILLS_SetMissileDirectionCallback: __cdecl void (D2UnitStrc * pUnit, int nDirection) (from Windows twin)
Ghidra vmac 111 · 3c6740e
Mac body reads [EBP+8] as the unit (its dynamic path at +0x2c) and the low byte of [EBP+0xc] as the direction, and passes both to the path set-direction call; no ECX/EDX input, plain RET. It is a unit-iteration callback, hence __cdecl. Windows twin SKILLS_SetMissileDirectionCallback 0x004c7470 is void (D2UnitStrc * pUnit, int nDirection).
Changes 1, applied together
Set prototype
mac 0x00083d2fsignatureundefined SKILLS_SetMissileDirectionCallback(void)→void SKILLS_SetMissileDirectionCallback(D2UnitStrc * pUnit, int nDirection)conventionunknown→__cdecl