REDIVIVUS

Proposals / #915

Mac GFX_LoadMonsterCofArchive: __cdecl void (uint8_t nCofNameIndex) (stack, not CL)

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

Ghidra vmac 111 · 3c6740e

Mac body reads MOVZX EAX, byte [EBP+8] at 0x00068348 and uses it to index the monster COF name table, formats the archive path with sprintf and loads it; ECX/EDX are never read before being set, plain RET. So the byte index is a __cdecl stack argument; the plate's 'MOVZX EAX, CL' note does not match the code. Windows twin GFX_LoadMonsterCofArchive 0x0046f310 is void (byte nCofNameIndex).

Changes 1, applied together

  1. Set prototype mac 0x00068325

    signatureundefined GFX_LoadMonsterCofArchive(void)→void GFX_LoadMonsterCofArchive(uint8_t nCofNameIndex)
    conventionunknown→__cdecl