X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Fmain.c;h=85f92c9193d5ea8c1e627ae31b912383bfcebb4f;hb=1be3e5c990b84f8548a80ccd6b7b209a88312141;hp=874bc78074843a82c4ce80d28857902b6cb25365;hpb=2362e426463cb445e119a4e3e5ce0b6ccb3fb33c;p=rocksndiamonds.git diff --git a/src/game_em/main.c b/src/game_em/main.c index 874bc780..85f92c91 100644 --- a/src/game_em/main.c +++ b/src/game_em/main.c @@ -6,68 +6,3 @@ * * set everything up and close everything down */ - -#include -#include -#include -#include -#include - -#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(); - -extern void game_menu_init(); - -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"); - - game_init_vars(); -} - -void em_close_all() -{ - close_all(); -} - -/* 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