+
+// Function prototype
+Window * CrashGracefullyCallback(void);
+
+//NOTE: Probably should set a flag as well telling it to do a full reset
+// of the Jaguar hardware if this happens...
+void GUICrashGracefully(const char * reason)
+{
+ finished = true; // We're finished for now!
+
+ // Since this is used in the menu code as well, we could create another
+ // internal function called "PushWindowOnQueue" or somesuch
+ SDL_Event event;
+ event.type = SDL_USEREVENT;
+ event.user.code = MENU_ITEM_CHOSEN;
+ event.user.data1 = (void *)CrashGracefullyCallback;
+ SDL_PushEvent(&event);
+}
+
+Window * CrashGracefullyCallback(void)
+{
+ Window * window = new Window(8, 16, 304, 192);
+
+ window->AddElement(new Text(8, 8+0*FONT_HEIGHT, "We CRASHED!!!"));
+
+ return window;
+}