Mac SFileSetIoErrorMode: BOOL __cdecl (int32_t nErrorMode, void* pfnErrorHandler)
The Mac body stores [EBP+8] (the mode) and [EBP+0xc] (the handler) into two globals, then MOV EAX,1 / RET. There are no register args. Same as Windows twin 0x004166b0 BOOL SFileSetIoErrorMode(int32_t nErrorMode, pfnSFileReadError* pfnErrorHandler). The handler is typed void* because pfnSFileReadError does not exist in the Mac DB.
Changes 1, applied together
Set prototype
mac 0x0001556asignatureundefined SFileSetIoErrorMode(void)→BOOL SFileSetIoErrorMode(int32_t nErrorMode, void* pfnErrorHandler)conventionunknown→__cdecl