Change the root directory to /usr/local/games

This commit is contained in:
Haoyang Wang
2015-10-25 20:44:07 -07:00
parent 93d2d28f78
commit 37b7229326
4 changed files with 4 additions and 4 deletions

View File

@@ -6,6 +6,6 @@
# Display the Guidebook from the GUI.
tell application "Finder"
open location "file:///usr/games/doc/NetHackGuidebook.pdf"
open location "file:///usr/local/games/doc/NetHackGuidebook.pdf"
delay 5
end tell

View File

@@ -19,7 +19,7 @@ if not canceled then
--set lastpos to lastpos + (length of "/nethackdir")
--set rawpath to (get text 1 through lastpos of mpath) & "/recover.pl"
--set safepath to the quoted form of rawpath
set safepath to the quoted form of "/usr/games/lib/nethackdir/recover.pl"
set safepath to the quoted form of "/usr/local/games/lib/nethackdir/recover.pl"
end considering
do shell script safepath
display dialog result with title "NetHackRecover Output"

View File

@@ -21,7 +21,7 @@ tell application "Terminal"
activate
#open new window and run NetHack in it
do script with command "clear;sleep 1;/usr/games/bin/nethack;echo '(press RETURN to exit)';awk '{exit}';exit"
do script with command "clear;sleep 1;/usr/local/games/bin/nethack;echo '(press RETURN to exit)';awk '{exit}';exit"
set nhresult to result -- class is tab
set nhresrec to result as record
set nhreslist to result as list

View File

@@ -39,7 +39,7 @@ if($try_perm){
# run recover, but only if there is something that looks promising
$recover = "./recover";
$recover = "/usr/games/bin/recover" unless(-e $recover);
$recover = "/usr/local/games/bin/recover" unless(-e $recover);
$uid = $<;
foreach ( <$uid*.0> ){