summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-emulation/snes9x/files/nojoy.patch')
-rw-r--r--games-emulation/snes9x/files/nojoy.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/games-emulation/snes9x/files/nojoy.patch b/games-emulation/snes9x/files/nojoy.patch
new file mode 100644
index 000000000000..3298144f22c0
--- /dev/null
+++ b/games-emulation/snes9x/files/nojoy.patch
@@ -0,0 +1,17 @@
+--- unix/unix.cpp.orig 2004-04-13 03:40:13.000000000 -0700
++++ unix/unix.cpp 2004-04-13 04:00:08.000000000 -0700
+@@ -233,10 +233,12 @@
+
+ void S9xParseArg (char **argv, int &i, int argc)
+ {
+-#ifdef JOYSTICK_SUPPORT
+ if (strcmp (argv [i], "-j") == 0 ||
+- strcasecmp (argv [i], "-nojoy") == 0)
++ strcasecmp (argv [i], "-nojoy") == 0) {
+ Settings.JoystickEnabled = FALSE;
++ return;
++ }
++#ifdef JOYSTICK_SUPPORT
+ else if (strcasecmp (argv [i], "-joydev1") == 0)
+ {
+ if (i + 1 < argc)