summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-arcade/xrick/files/xrick-021212-exit.patch')
-rw-r--r--games-arcade/xrick/files/xrick-021212-exit.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/games-arcade/xrick/files/xrick-021212-exit.patch b/games-arcade/xrick/files/xrick-021212-exit.patch
new file mode 100644
index 000000000000..4486a969b346
--- /dev/null
+++ b/games-arcade/xrick/files/xrick-021212-exit.patch
@@ -0,0 +1,23 @@
+diff -ur xrick-021212/src/sysjoy.c xrick-021212.patched/src/sysjoy.c
+--- xrick-021212/src/sysjoy.c 2010-10-23 00:33:33.000000000 +0400
++++ xrick-021212.patched/src/sysjoy.c 2010-10-23 00:42:25.000000000 +0400
+@@ -56,6 +56,7 @@
+ {
+ if (j)
+ SDL_JoystickClose(j);
++ j = NULL;
+ }
+
+ #endif /* ENABLE_JOYSTICK */
+diff -ur xrick-021212/src/xrick.c xrick-021212.patched/src/xrick.c
+--- xrick-021212/src/xrick.c 2010-10-23 00:33:33.000000000 +0400
++++ xrick-021212.patched/src/xrick.c 2010-10-23 00:40:47.000000000 +0400
+@@ -29,7 +29,7 @@
+ data_setpath("/usr/games/lib/xrick/data.zip");
+ game_run();
+ data_closepath();
+- sys_shutdown();
++ /* sys_shutdown is called via atexit */
+ return 0;
+ }
+