Don't set NETHACKOPTIONS env var inside dgl, set it in config file.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@393 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
0d509576d8
commit
b029b458f3
|
@ -2075,10 +2075,12 @@ main (int argc, char** argv)
|
|||
*/
|
||||
|
||||
/* environment */
|
||||
/*
|
||||
if (myconfig[userchoice]->rcfile) {
|
||||
snprintf (atrcfilename, 81, "@%s", dgl_format_str(userchoice, me, myconfig[userchoice]->rc_fmt));
|
||||
mysetenv ("NETHACKOPTIONS", atrcfilename, 1);
|
||||
}
|
||||
*/
|
||||
|
||||
len = strlen(myconfig[userchoice]->spool) + strlen (me->username) + 1;
|
||||
spool = malloc (len + 1);
|
||||
|
|
|
@ -143,7 +143,9 @@ rc_fmt = "%rrcfiles/%n.nethackrc"
|
|||
inprogressdir = "inprogress-nethack/"
|
||||
|
||||
# back up savefile
|
||||
commands = cp "/var/games/nethack/save/%u%n.gz" "/var/games/nethack/save/%u%n.gz.bak"
|
||||
commands = cp "/var/games/nethack/save/%u%n.gz" "/var/games/nethack/save/%u%n.gz.bak",
|
||||
# set NETHACKOPTIONS to point to the rcfile
|
||||
setenv "NETHACKOPTIONS" "@%rrcfiles/%n.nethackrc"
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue