Mac SFILE_FindFileOnDisk: uint32_t __fastcc (char* szFileName ECX, byte bSearchFlags DL, char* szOutPath)
ECX -> EDI = the file name. DL = the search flags (TEST DL,3 then DL,2 picks the strip/no-strip passes). [EBP+8] -> ESI = the output path (EDX to SFILE_ConvertRelativePathName 0x000138b4, then stat'd at 0x000138bc). It returns EBX (MOV EAX,EBX at 0x00013939): 0 if no flag is set, else whether a regular file was found. Same roles as Windows twin 0x00415b00 uint32_t (byte bSearchFlags, LPCSTR szOutPath, char* szFileName).
Changes 1, applied together
Set prototype
mac 0x0001387fsignatureundefined SFILE_FindFileOnDisk(void)→uint32_t SFILE_FindFileOnDisk(char* szFileName, byte bSearchFlags, char* szOutPath)conventionunknown→__fastcc