Change the root directory to /usr/local/games
This commit is contained in:
@@ -6,6 +6,6 @@
|
|||||||
# Display the Guidebook from the GUI.
|
# Display the Guidebook from the GUI.
|
||||||
|
|
||||||
tell application "Finder"
|
tell application "Finder"
|
||||||
open location "file:///usr/games/doc/NetHackGuidebook.pdf"
|
open location "file:///usr/local/games/doc/NetHackGuidebook.pdf"
|
||||||
delay 5
|
delay 5
|
||||||
end tell
|
end tell
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ if not canceled then
|
|||||||
--set lastpos to lastpos + (length of "/nethackdir")
|
--set lastpos to lastpos + (length of "/nethackdir")
|
||||||
--set rawpath to (get text 1 through lastpos of mpath) & "/recover.pl"
|
--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 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
|
end considering
|
||||||
do shell script safepath
|
do shell script safepath
|
||||||
display dialog result with title "NetHackRecover Output"
|
display dialog result with title "NetHackRecover Output"
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ tell application "Terminal"
|
|||||||
|
|
||||||
activate
|
activate
|
||||||
#open new window and run NetHack in it
|
#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 nhresult to result -- class is tab
|
||||||
set nhresrec to result as record
|
set nhresrec to result as record
|
||||||
set nhreslist to result as list
|
set nhreslist to result as list
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ if($try_perm){
|
|||||||
|
|
||||||
# run recover, but only if there is something that looks promising
|
# run recover, but only if there is something that looks promising
|
||||||
$recover = "./recover";
|
$recover = "./recover";
|
||||||
$recover = "/usr/games/bin/recover" unless(-e $recover);
|
$recover = "/usr/local/games/bin/recover" unless(-e $recover);
|
||||||
|
|
||||||
$uid = $<;
|
$uid = $<;
|
||||||
foreach ( <$uid*.0> ){
|
foreach ( <$uid*.0> ){
|
||||||
|
|||||||
Reference in New Issue
Block a user