REDIVIVUS

Proposals / #912

Mac GFX_ExtractFilenameFromPath: __fastcc void (char * szPath, char * szOutFilename)

applied · by KierTaylor · submitted 2026-11-02, applied 2026-11-02

Ghidra vmac 111 · 3c6740e

Mac body: ECX (EDI) goes to strlen and is checked for a '.' four bytes from the end, then scanned back to the last backslash; the name between is copied (strncpy) into EDX (ESI), which is NUL-terminated; no stack arguments, plain RET. Windows twin GFX_ExtractFilenameFromPath 0x0046dbf0 is void (char * szPath, char * szOutFilename); same order on Mac (ECX, EDX).

Changes 1, applied together

  1. Set prototype mac 0x000695a0

    signatureundefined GFX_ExtractFilenameFromPath(void)→void GFX_ExtractFilenameFromPath(char * szPath, char * szOutFilename)
    conventionunknown→__fastcc