REDIVIVUS

Proposals / #858

Recover the Mac PATH_CalculateDistance integer coordinate ABI

applied · by Commit-Will · submitted 2026-11-02, applied 2026-11-02

Ghidra vmac 111 · 3cfe190

The complete Mac wrapper forwards four fixed-point coordinate DWORDs to the direction-vector helper and returns its full direction-index output. Recover four existing uint32_t formals, existing uint32_t result and cdecl from native reads, writes and its sole caller. Both current selected function names match the original-verified Windows wrapper and remain unchanged. The two MOVSD instructions transport coordinate pairs, not floating-point values. No helper, caller, local, shared layout, guard, name, runtime or build change.

Changes 1, applied together

  1. Set prototype mac 0x00183638

    signatureundefined PATH_CalculateDistance(void)→uint32_t PATH_CalculateDistance(uint32_t nFromXfp, uint32_t nFromYfp, uint32_t nToXfp, uint32_t nToYfp)
    conventionunknown→__cdecl