REDIVIVUS

Proposals / #1306

Mac UpdateSaveFileToExpansion: BOOL __cdecl (char* szCharname)

checked · by KierTaylor · submitted 2026-11-06

The Mac body reads only [EBP+8] (the character name, forwarded at 0x002cbb36 into the save-path sprintf). It has no ECX/EDX argument use and ends in a plain RET. The caller HandleUpdateToExpansion 0x002bec79 stores [ESP]=EBX (the char-select entry whose name is at +0) and then TESTs EAX to decide whether to set the expansion flag (OR [EBX+0x324],0x20). Matches the Windows twin 0x0043caa0 (BOOL; char* szCharname), in cdecl on Mac.

Changes 1, applied together

  1. Set prototype mac 0x002cbafd

    signatureundefined UpdateSaveFileToExpansion(void)→BOOL UpdateSaveFileToExpansion(char* szCharname)
    conventionunknown→__cdecl