diff options
author | Steve Price <steve@FreeBSD.org> | 1998-07-12 23:08:56 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 1998-07-12 23:08:56 +0000 |
commit | 93e071172dce49bb69c28a1a19edc5cfd6b9505c (patch) | |
tree | b2192b751b38d0c195149406faef06cc31de3728 /games/xdigger/files/patch-ac | |
parent | Turn on coolmail. (diff) |
Initial import of xdigger version 1.0.6.
Boulderdash-like KC85 Digger for X Window System.
PR: 7149
Submitted by: Andrey Zakhvatov <andy@icc.surw.chel.su>
Notes
Notes:
svn path=/head/; revision=11862
Diffstat (limited to 'games/xdigger/files/patch-ac')
-rw-r--r-- | games/xdigger/files/patch-ac | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/games/xdigger/files/patch-ac b/games/xdigger/files/patch-ac new file mode 100644 index 000000000000..26a45e318adb --- /dev/null +++ b/games/xdigger/files/patch-ac @@ -0,0 +1,50 @@ +--- xdigger.c Thu Jan 1 00:06:00 1998 ++++ /home/andy/tmp/wrk/xdigger.c Sat Jun 29 23:19:18 1996 +@@ -311,17 +315,29 @@ + + Fill_TonBuffer(TON_AUDIO_LOW, TON_AUDIO_HIGH, TON_AUDIO_RATE, True); + ++#ifdef __FreeBSD__ ++ fd = open("/usr/X11R6/share/xdigger/diamond.au", O_CREAT | O_WRONLY); ++#else + fd = open("audio/diamond.au", O_CREAT | O_WRONLY); ++#endif + fchmod(fd, 0644); + write(fd, &ton_buffer[TON_DIAMANT], ton_laenge[TON_DIAMANT]+24); + close(fd); + ++#ifdef __FreeBSD__ ++ fd = open("/usr/X11R6/share/xdigger/stone.au", O_CREAT | O_WRONLY); ++#else + fd = open("audio/stone.au", O_CREAT | O_WRONLY); ++#endif + fchmod(fd, 0644); + write(fd, &ton_buffer[TON_STEINE], ton_laenge[TON_STEINE]+24); + close(fd); + ++#ifdef __FreeBSD__ ++ fd = open("/usr/X11R6/share/xdigger/step.au", O_CREAT | O_WRONLY); ++#else + fd = open("audio/step.au", O_CREAT | O_WRONLY); ++#endif + fchmod(fd, 0644); + write(fd, &ton_buffer[TON_SCHRITT], ton_laenge[TON_SCHRITT]+24); + close(fd); +@@ -338,7 +354,7 @@ + { + printf("Usage: xdigger [-display display] [-1|2|3|...] [-noblink] [-noiconmove] [-vert240] [-sound "); + #ifdef SOUND_DSP_AUDIO +-#ifdef linux ++#if ( defined(linux) || defined(__FreeBSD__) ) + printf("dsp|"); + #endif + printf("audio|"); +@@ -390,7 +406,7 @@ + } + #endif + #ifdef SOUND_DSP_AUDIO +-#ifdef linux ++#if ( defined(linux) || defined(__FreeBSD__) ) + if(!strcmp(argv[i], "dsp")) sound_device = SD_DSP; else + #endif + if(!strcmp(argv[i], "audio")) sound_device = SD_AUDIO; else |