REDIVIVUS

Proposals / #911

Mac GFX_FreeAllModesGfxInfo: __cdecl void (D2UnitStrc * pUnit) (from Windows twin)

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

Ghidra vmac 111 · 3c6740e

Mac body reads [EBP+8] (into EBX) and passes it to the per-mode free call for each of 16 modes and to the unit gfx-info getter (asserted non-null, line 0x668), then frees the linked cache entries at +0x28; no ECX/EDX input, plain RET. Windows twin GFX_FreeAllModesGfxInfo 0x0046f000 is void (D2UnitStrc * pUnit).

Changes 1, applied together

  1. Set prototype mac 0x000677c5

    signatureundefined GFX_FreeAllModesGfxInfo(void)→void GFX_FreeAllModesGfxInfo(D2UnitStrc * pUnit)
    conventionunknown→__cdecl