Change the root directory to /usr/local/games
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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> ){
|
||||
|
||||
Reference in New Issue
Block a user