REDIVIVUS

Proposals / #860

Recover the Mac realm-name getter's character pointer result

applied · by Commit-Will · submitted 2026-11-02, applied 2026-11-02

Ghidra vmac 111 · 3cfe190

The complete Mac getter returns the first DWORD of an actual realm entry on every normal return. Its producer allocates the eight-byte entry, separately allocates strlen(source)+1 bytes for that field and copies the same source and size with a native byte-string copy before publishing the entry into the actual global pointer-array. All13 base references and the sole runtime caller are verified from complete native bodies. Use existing char*, preserving the selected name, int index, Stack4 and cdecl. The original-verified Windows getter has the same indexed-entry/first-field body and diagnostic line115c. No shared record, global, helper, wrapper, error guard or ABI change.

Changes 1, applied together

  1. Set prototype mac 0x002c7c2d

    signatureundefined MAINMENU_GetRealmName(int nIndex)→char * MAINMENU_GetRealmName(int nIndex)
    convention__cdecl