diff options
author | dwcjr <dwcjr@FreeBSD.org> | 2002-05-07 20:13:42 +0000 |
---|---|---|
committer | dwcjr <dwcjr@FreeBSD.org> | 2002-05-07 20:13:42 +0000 |
commit | 4dd73756054ea924ee17a30a033a481cae2701b7 (patch) | |
tree | cfeec673cf3a2db4f08c616aa20565bab9058a40 /emulators/zsnes | |
parent | 58bf801d1a7788058bb06e2422e0a9ccea7a6af5 (diff) | |
download | FreeBSD-ports-4dd73756054ea924ee17a30a033a481cae2701b7.zip FreeBSD-ports-4dd73756054ea924ee17a30a033a481cae2701b7.tar.gz |
Unbreak zsnes with the latest SDL update: disable joystick code for now
PR: 37830
Submitted by: maintainer
Diffstat (limited to 'emulators/zsnes')
-rw-r--r-- | emulators/zsnes/files/patch-src::linux::sdllink.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/emulators/zsnes/files/patch-src::linux::sdllink.c b/emulators/zsnes/files/patch-src::linux::sdllink.c new file mode 100644 index 0000000..88641e2 --- /dev/null +++ b/emulators/zsnes/files/patch-src::linux::sdllink.c @@ -0,0 +1,35 @@ +--- linux/sdllink.c.orig Sun Sep 23 17:42:52 2001 ++++ linux/sdllink.c Tue May 7 13:16:21 2002 +@@ -536,6 +536,11 @@ + + for (i = 0; i < 5; i++) + JoystickInput[i] = NULL; ++#if 1 ++ printf("ZSNES could not find any joysticks.\n"); ++ SDL_QuitSubSystem(SDL_INIT_JOYSTICK); ++ return FALSE; ++#else + // If it is possible to use SDL_NumJoysticks + // before initialising SDL_INIT_JOYSTICK then + // this call can be replaced with SDL_InitSubSystem +@@ -557,6 +562,7 @@ + } + + return TRUE; ++#endif + } + + BOOL InitInput() +@@ -572,7 +578,11 @@ + if (!sdl_inited) + { + if (SDL_Init(SDL_INIT_AUDIO | SDL_INIT_TIMER | +- SDL_INIT_VIDEO | SDL_INIT_JOYSTICK) < 0) ++ SDL_INIT_VIDEO ++#if 0 ++| SDL_INIT_JOYSTICK ++#endif ++ ) < 0) + { + fprintf(stderr, "Could not initialize SDL!\n"); + return FALSE; |