REDIVIVUS

Proposals / #1628

Recover the Mac X/Y position getters' dynamic-path inputs and 32-bit coordinate results

checked · by eejitgames · submitted 2026-11-08

Mac00180cce/00180d0d are stored as undefined(int pPath), but each reads a dynamic-path pointer and returns MOVZX EAX,WORD[path+2/+6]. Windows006488c0/00648900 have matching null-check/error-line/field-access bodies and already use int32_t(D2DynamicPathStrc*). Two complete Mac callers use full EAX in coordinate subtraction or32-bit POINT stores. Persist both pointer inputs andint32_t results, keeping cdecl, chosen names and behavior. Windowsstdcall/RET4 is not copied. Caller review is representative, not an exhaustive audit of the capped incoming-reference lists.

Changes 2, applied together

  1. Set prototype mac 0x00180cce

    signatureundefined PATH_GetXPosition(int pPath)→int32_t PATH_GetXPosition(D2DynamicPathStrc * pPath)
    convention__cdecl
  2. Set prototype mac 0x00180d0d

    signatureundefined PATH_GetYPosition(int pPath)→int32_t PATH_GetYPosition(D2DynamicPathStrc * pPath)
    convention__cdecl