REDIVIVUS

Proposals / #931

Mac INPUT_HandleChatCharInput: __cdecl void (D2UIMouseMsgStrc * pMsg) (from Windows twin)

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

Ghidra vmac 111 · 3c6740e

Mac body reads [EBP+8] into ESI and uses it as the UI message: its key code at +0x8 is compared with 0x8 (backspace), 0x1b (escape) and 0xd (enter) to drive the chat line editor; ECX/EDX are only set locally (for the CHAT_Handle*Command calls). Windows twin INPUT_HandleChatCharInput 0x0047ca70 is void (D2UIMouseMsgStrc * pMsg).

Changes 1, applied together

  1. Set prototype mac 0x0009f13d

    signatureundefined INPUT_HandleChatCharInput(void)→void INPUT_HandleChatCharInput(D2UIMouseMsgStrc * pMsg)
    conventionunknown→__cdecl