diff options
author | Chris Piazza <cpiazza@FreeBSD.org> | 2000-01-03 20:17:40 +0000 |
---|---|---|
committer | Chris Piazza <cpiazza@FreeBSD.org> | 2000-01-03 20:17:40 +0000 |
commit | deeae26872d58d967053d044746c081779e58263 (patch) | |
tree | 67756d1bdab7c7f0cf5430e18b57390171e4bee8 /games/rubix/files/patch-ad | |
parent | Activate mnews-im. (diff) |
Add rubix port.
Rubix is another X11-based incarnation of the world-famous
"Rubik's Cube" game. It has the capability of saving games,
which, according to the author, can't be found in any other
Rubik's Cube games.
PR: 15807
Submitted by: Will Andrews <andrews@technologist.com>
Notes
Notes:
svn path=/head/; revision=24394
Diffstat (limited to '')
-rw-r--r-- | games/rubix/files/patch-ad | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/games/rubix/files/patch-ad b/games/rubix/files/patch-ad new file mode 100644 index 000000000000..c720dba1c94a --- /dev/null +++ b/games/rubix/files/patch-ad @@ -0,0 +1,33 @@ +--- main.c Thu Dec 2 19:00:49 1999 ++++ main.c.new Wed Dec 22 21:13:11 1999 +@@ -22,6 +22,10 @@ + #include "event.h" + #include "device.h" + ++#ifndef MODULE_FILE_PREFIX ++#define MODULE_FILE_PREFIX "\"/usr/X11R6/share/rubix/\"" ++#endif ++ + char *the_screen; + device d; + +@@ -32,6 +36,10 @@ + CUBE cube; + int i; + int rand=1; ++ char full_module_file[4096]; ++ char *module_file = "module.xm"; ++ strcpy(full_module_file, MODULE_FILE_PREFIX); ++ strcat(full_module_file, module_file); + + the_screen=&screen.buffer[0]; + d.buffer=screen.buffer; +@@ -68,7 +76,7 @@ + return -1; + } + +- if (rubick_init_sound(&sound, "module.xm")==-1) { ++ if (rubick_init_sound(&sound, full_module_file)==1) { + fprintf(stderr, "Error with initing the sound, sorry pal, no sound no game.\n(I fucked my head with" + " an xm player, this is not for nothing !)\n"); + return 0; |