REDIVIVUS

Proposals / #1472

Mac SFILE_FindFileOnDisk: uint32_t __fastcc (char* szFileName ECX, byte bSearchFlags DL, char* szOutPath)

checked · by KierTaylor · submitted 2026-11-08

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

  1. Set prototype mac 0x0001387f

    signatureundefined SFILE_FindFileOnDisk(void)→uint32_t SFILE_FindFileOnDisk(char* szFileName, byte bSearchFlags, char* szOutPath)
    conventionunknown→__fastcc