# HG changeset patch # User Matti Hamalainen # Date 1274823745 -10800 # Node ID f0c596c5905b6c3d054e4ca79539894fdae2de98 # Parent 411c1c8d810ec994a7ff1865934262e60e2ebe54 Make Final Isi hack more easily configurable. diff -r 411c1c8d810e -r f0c596c5905b pwplib/pwplib-unix.c --- a/pwplib/pwplib-unix.c Mon May 24 14:24:04 2010 +0300 +++ b/pwplib/pwplib-unix.c Wed May 26 00:42:25 2010 +0300 @@ -1,5 +1,7 @@ #define __PWPLIB_C +#undef FISI_HACK /* NOTICE! Enabling this is a hack for Final ISI only */ + #include "config.h" #include @@ -50,8 +52,7 @@ if (event.key.keysym.sym == SDLK_ESCAPE) quit = 1; break; -#if 0 -/* NOTICE! Disableing this is a hack for Final ISI only */ +#ifdef FISI_HACK case SDL_QUIT: quit = 1; break; @@ -110,6 +111,10 @@ #ifdef DRIVE_AUDIO sdl_flags |= SDL_INIT_AUDIO; #endif +#ifdef FISI_HACK + sdl_flags |= SDL_INIT_NOPARACHUTE; +#endif + /* With SDL, we let it handle the signals */ if (SDL_Init(SDL_INIT_TIMER | SDL_INIT_EVENTTHREAD | sdl_flags) != 0) { pwpwrite("* SDL could not be initialized (%s).\n", SDL_GetError());