REDIVIVUS

Proposals / #1661

Type Mac SOUND_LocalizeSoundPath as void __fastcc (char*, char*)

checked · by KierTaylor · submitted 2026-11-08

Register function: ECX -> ESI is the output path buffer (first arg of both sprintf calls at 0x0005d9af/0x0005d9f3, then checked with 0x0005da71), EDX -> EBX is the file name (last %s arg). No stack args, plain RET; both callers in ExitGamePlayCutScene pass two stack buffers in ECX/EDX and ignore EAX (0x0005d853 calls on). Windows twin 0x00482e30 is void with confusing names (szFormat, pszOutPath, pTmp), so these are named by role.

Changes 1, applied together

  1. Set prototype mac 0x0005d961

    signatureundefined SOUND_LocalizeSoundPath(void)→void SOUND_LocalizeSoundPath(char* szOutPath, char* szFileName)
    conventionunknown→__fastcc