fixed bug in single button handling causing broken tapes (EM engine)
[rocksndiamonds.git] / src / game_em / main.c
index a477d1035c583fefaa526af624fe48a7ff1e1b62..85f92c9193d5ea8c1e627ae31b912383bfcebb4f 100644 (file)
@@ -6,78 +6,3 @@
  *
  * set everything up and close everything down
  */
-
-#include <stdlib.h>
-#include <unistd.h>
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-
-#include "global.h"
-
-
-#if defined(TARGET_X11)
-
-char *progname;
-char *arg_basedir;
-char *arg_display;
-char *arg_geometry;
-int arg_install;
-int arg_silence;
-
-extern void tab_generate();
-extern void ulaw_generate();
-
-void em_open_all()
-{
-  /* pre-calculate some data */
-  tab_generate();
-  ulaw_generate();
-
-  progname = "emerald mine";
-
-  if (open_all() != 0)
-    Error(ERR_EXIT, "em_open_all(): open_all() failed");
-}
-
-void em_close_all()
-{
-  close_all();
-}
-
-void em_main()
-{
-#if 0
-  em_open_all();
-#endif
-
-  if (game_start() != 0)
-    Error(ERR_EXIT, "em_main(): game_start() failed");
-
-#if 0
-  em_close_all();
-#endif
-}
-
-/* massive kludge for buffer overflows
- * i cant think of an elegant way to handle this situation.
- * oh wait yes i can. dynamically allocate each string. oh well
- */
-void snprintf_overflow(char *description)
-{
-  fprintf(stderr, "%s: %s\n", progname,
-         "buffer overflow; check EMERALD_BASE environment variable");
-  fprintf(stderr, "%s %s\n", "Fault occured while attempting to", description);
-
-  abort();
-}
-
-#else
-
-int em_main()
-{
-  /* temporary dummy until X11->SDL conversion finished */
-  return 0;
-}
-
-#endif