Mercurial > hg > forks > pwpunix
changeset 53:f0c596c5905b
Make Final Isi hack more easily configurable.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 26 May 2010 00:42:25 +0300 |
parents | 411c1c8d810e |
children | 85671798fdb3 |
files | pwplib/pwplib-unix.c |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 <stdio.h> @@ -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());