REDIVIVUS

Proposals / #927

Mac DIALOG_CenterStringLine: __fastcc void (D2DialogStrc * pDialog, int32_t nIndex) (from Windows twin)

applied · by KierTaylor · submitted 2026-11-02, applied 2026-11-02

Ghidra vmac 111 · 3c6740e

Mac body: ECX (ESI) is the dialog (+0x34 box width) and EDX is multiplied by 0x110 to index the dialog's line records (+0x68 text, +0x15c X offset, +0x160 width, +0x168 font); it measures the line and stores the centring offset; no stack arguments, plain RET. Windows twin DIALOG_CenterStringLine 0x004b83a0 is void (D2DialogStrc * pDialog, int32_t nIndex); same order on Mac.

Changes 1, applied together

  1. Set prototype mac 0x000a408a

    signatureundefined DIALOG_CenterStringLine(void)→void DIALOG_CenterStringLine(D2DialogStrc * pDialog, int32_t nIndex)
    conventionunknown→__fastcc