summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2004-04-14 07:33:50 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2004-04-14 07:33:50 +0000
commit9dac7dc1aa9fe78846e60271c4d3d5026b2ec977 (patch)
treecf17ca9025b5a7eef0ca76802c37286e57b5c13c /games-emulation/snes9x/files
parentEbuild fixes (diff)
downloadhistorical-9dac7dc1aa9fe78846e60271c4d3d5026b2ec977.tar.gz
historical-9dac7dc1aa9fe78846e60271c4d3d5026b2ec977.tar.bz2
historical-9dac7dc1aa9fe78846e60271c4d3d5026b2ec977.zip
add nojoy.patch to support the -nojoy option even when compiled without joystick support (bug #46210); tidy
Diffstat (limited to 'games-emulation/snes9x/files')
-rw-r--r--games-emulation/snes9x/files/digest-snes9x-1.42-r11
-rw-r--r--games-emulation/snes9x/files/nojoy.patch17
2 files changed, 18 insertions, 0 deletions
diff --git a/games-emulation/snes9x/files/digest-snes9x-1.42-r1 b/games-emulation/snes9x/files/digest-snes9x-1.42-r1
new file mode 100644
index 000000000000..82c4c2809c48
--- /dev/null
+++ b/games-emulation/snes9x/files/digest-snes9x-1.42-r1
@@ -0,0 +1 @@
+MD5 1e8af4c590e35352ddac58d25a468676 snes9x-1.42-src.tar.gz 945282
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)