Mac D2GFX_Initialize: BOOL __cdecl (hInstance, pfnWndProc, eRenderedMode, bWindowed)
There are four cdecl stack args and a plain RET, with no incoming ECX/EDX (ECX is first written by SETZ at 0x002b499c). [EBP+8] = the instance (stored to a global, later [ESP] for window-class registration), [EBP+0xc] = the WndProc (stored to a global), [EBP+0x10] = the renderer mode (CMP EBX,5), [EBP+0x14] = windowed. It returns 0 on its failure paths (XOR EAX,EAX), else success. D2GFX_PreSetupBeforeCreatingWindow 0x0004a0aa passes the same four and returns its EAX. Same as Windows twin 0x004f52e0 BOOL (HINSTANCE, WNDPROC, eD2RendererMode, BOOL); the Win32 types are void* on Mac.
Changes 1, applied together
Set prototype
mac 0x002b4975signatureundefined D2GFX_Initialize(void)→BOOL D2GFX_Initialize(void* hInstance, void* pfnWndProc, eD2RendererMode eRenderedMode, BOOL bWindowed)conventionunknown→__cdecl