MCPcopy Create free account
hub / github.com/NetHack/NetHack / mustGetMenuAlerts

Function mustGetMenuAlerts

outdated/sys/mac/macmenu.c:802–820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

800#endif
801
802static void
803mustGetMenuAlerts()
804{
805 short i;
806 Rect **hRct;
807
808 for (i = alrt_Menu_start; i < alrt_Menu_limit; i++) {
809 if (!(hRct = (Rect **) GetResource('ALRT', i))) /* AlertTHndl */
810 {
811 for (i = 0; i < beepMenuAlertErr; i++)
812 SysBeep(3);
813 ExitToShell();
814 }
815
816#if !TARGET_API_MAC_CARBON
817 alignAD(*hRct, GetMBarHeight());
818#endif
819 }
820}
821
822static void
823menuError(short menuErr)

Callers 1

InitMenuResFunction · 0.85

Calls 1

alignADFunction · 0.85

Tested by

no test coverage detected