Mac SFILE_ConvertRelativePathName: void __fastcc (char* szFileName ECX, char* szOutPath EDX, int32_t bStripDir)
ECX -> EDI = the file name (strrchr(name,'\\')+1 when [EBP+8] is set, then sprintf'd with the base dir into a 0x104 local). EDX -> [EBP-0x118] = the output buffer (the destination of the 0x104-byte copy at 0x000145cb). [EBP+8] = the strip-directory flag. Plain RET after the stack guard; EAX is not loaded. SFILE_FindFileOnDisk 0x000138b4 passes ECX=name, EDX=out, [ESP]=1. Same roles as Windows twin 0x00415a80 (bStripDir, szFileName, szOutPath).
Changes 1, applied together
Set prototype
mac 0x0001453fsignatureundefined SFILE_ConvertRelativePathName(void)→void SFILE_ConvertRelativePathName(char* szFileName, char* szOutPath, int32_t bStripDir)conventionunknown→__fastcc