REDIVIVUS

Proposals / #1612

Mac MACCURSOR_RestoreCursor: int32_t __cdecl (void)

checked · by KierTaylor · submitted 2026-11-08

It reads no register or stack args. Unless cursor procs are suspended, it calls the restore hook (0x00036aca) and, if the show count (global 0x003f4964) is negative, the hide hook too. It returns the show count in EAX (MOV EAX,[ESI+0x3bdea5] at 0x00036ae2, the same counter MACCURSOR_ShowCursor/HideCursor maintain). Callers: MACDISPLAY_SelectDriver and MAC_ShowAboutDialog.

Changes 1, applied together

  1. Set prototype mac 0x00036ab5

    signatureundefined MACCURSOR_RestoreCursor(void)→int32_t MACCURSOR_RestoreCursor(void)
    conventionunknown→__cdecl