summaryrefslogtreecommitdiff
path: root/games/nethack-qt/patches/patch-ad
blob: bf1c66e736abe968e230295dccce8b3e7a8e80e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ad,v 1.3 2002/03/22 17:26:26 pooka Exp $

--- sys/unix/nethack.sh.orig	Thu Mar 21 01:43:54 2002
+++ sys/unix/nethack.sh	Fri Mar 22 17:39:00 2002
@@ -1,9 +1,15 @@
 #!/bin/sh
 #	SCCS Id: @(#)nethack.sh	3.4	1990/02/26
 
-HACKDIR=/usr/games/lib/nethackdir
+if [ "$1" = "" ]; then
+	TTY=tty
+else
+	TTY=$1
+fi
+
+HACKDIR=XXXPREFIXXXX/share/nethackdir
 export HACKDIR
-HACK=$HACKDIR/nethack
+HACK=XXXPREFIXXXX/bin/nethack-$TTY
 MAXNROFPLAYERS=4
 
 # see if we can find the full path name of PAGER, so help files work properly