Recover the Mac text-box setter's complete five-argument contract
Mac0004e1b5 declares five undefined4 inputs and an undefined result. Its complete native body has stable D2WinTextBox*/WCHAR* inputs, a DWORD line style, a BYTE indent flag and an int alignment; no input slot becomes an unrelated local. Recover those types with existing one-byte bool and four-byte BOOL, preserving all selected names and cdecl. Every normal Mac return explicitly sets full EAX=1. Windows004fc9b0 has the same typed inputs and matching native field/text/flag operations; Mac additionally inlines word wrapping and recursively calls this setter with indent1/0. This is independent of pending1297's MAINMENU caller contract and the string-helper proposals.
Changes 1, applied together
Set prototype
mac 0x0004e1b5signatureundefined SetText(undefined4 pTextBox, undefined4 szText, undefined4 nLineStyle, undefined4 bIndent, undefined4 nAlignment)→BOOL SetText(D2WinTextBox * pTextBox, WCHAR * szText, int32_t nLineStyle, bool bIndent, int nAlignment)convention__cdecl