REDIVIVUS

Proposals / #928

Mac UI_ScrollNpcMenuList: __fastcc void (D2DialogStrc * pDialog, int32_t nScrollDelta)

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

Ghidra vmac 111 · 3c6740e

Mac body: ECX (ESI) is the dialog (+0x4c count, +0x44 selected line, +0x50 line count, line records +0x174 stride 0x110); EDX is added repeatedly to the selection, wrapping at both ends, until a selectable line is found; then it plays the click sound and stores the new selection; no stack arguments, plain RET. Windows twin UI_ScrollNpcMenuList 0x004b7100 takes (int32_t nParam1, D2DialogStrc * pDialog); Mac passes the dialog first.

Changes 1, applied together

  1. Set prototype mac 0x000a41f4

    signatureundefined UI_ScrollNpcMenuList(void)→void UI_ScrollNpcMenuList(D2DialogStrc * pDialog, int32_t nScrollDelta)
    conventionunknown→__fastcc