/* * gui.c * D2X (Descent2) * * Created by Chris Taylor on Sat Jul 03 2004. * */ #ifdef __APPLE__ #include #else #include #endif void ErrorDialog(char *message) { Str255 pascal_message; short itemHit; // Insists on returning this CopyCStringToPascal(message, pascal_message); ShowCursor(); StandardAlert(kAlertStopAlert, pascal_message, NULL, 0, &itemHit); } void WarningDialog(char *s) { Str255 pascal_message; short itemHit; // Insists on returning this CopyCStringToPascal(s, pascal_message); ShowCursor(); StandardAlert(kAlertCautionAlert, pascal_message, NULL, 0, &itemHit); HideCursor(); }