5 * v0.0 2000-01-06T06:43:39Z
7 * set everything up and close everything down
19 #if defined(TARGET_X11)
28 extern void tab_generate();
29 extern void ulaw_generate();
33 /* pre-calculate some data */
37 progname = "emerald mine";
40 Error(ERR_EXIT, "em_open_all(): open_all() failed");
54 if (game_start() != 0)
55 Error(ERR_EXIT, "em_main(): game_start() failed");
62 /* massive kludge for buffer overflows
63 * i cant think of an elegant way to handle this situation.
64 * oh wait yes i can. dynamically allocate each string. oh well
66 void snprintf_overflow(char *description)
68 fprintf(stderr, "%s: %s\n", progname,
69 "buffer overflow; check EMERALD_BASE environment variable");
70 fprintf(stderr, "%s %s\n", "Fault occured while attempting to", description);
79 /* temporary dummy until X11->SDL conversion finished */