mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-07-29 16:45:35 +02:00
Don't do other NetHack-specific stuff either in dgl itself...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@394 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
b029b458f3
commit
efcfb05f41
@ -1876,7 +1876,7 @@ int
|
||||
main (int argc, char** argv)
|
||||
{
|
||||
/* for chroot and program execution */
|
||||
char atrcfilename[81], *spool, *p, *auth = NULL;
|
||||
char atrcfilename[81], /**spool,*/ *p, *auth = NULL;
|
||||
unsigned int len;
|
||||
int c, i;
|
||||
int nhext = 0, nhauth = 0;
|
||||
@ -2082,18 +2082,22 @@ main (int argc, char** argv)
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
len = strlen(myconfig[userchoice]->spool) + strlen (me->username) + 1;
|
||||
spool = malloc (len + 1);
|
||||
snprintf (spool, len + 1, "%s/%s", myconfig[userchoice]->spool, me->username);
|
||||
|
||||
mysetenv ("MAIL", spool, 1);
|
||||
mysetenv ("SIMPLEMAIL", "1", 1);
|
||||
*/
|
||||
|
||||
/* don't let the mail file grow */
|
||||
/*
|
||||
if (access (spool, F_OK) == 0)
|
||||
unlink (spool);
|
||||
|
||||
free (spool);
|
||||
*/
|
||||
|
||||
/* fix the variables in the arguments */
|
||||
for (i = 0; i < myconfig[userchoice]->num_args; i++) {
|
||||
|
@ -140,13 +140,18 @@ rc_template = "/dgl-default-rcfile"
|
||||
# %r == dglroot
|
||||
# %n == user name
|
||||
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",
|
||||
# set NETHACKOPTIONS to point to the rcfile
|
||||
setenv "NETHACKOPTIONS" "@%rrcfiles/%n.nethackrc"
|
||||
|
||||
setenv "NETHACKOPTIONS" "@%rrcfiles/%n.nethackrc",
|
||||
# set up nethack mail stuff
|
||||
setenv "MAIL" "/var/mail/%n",
|
||||
setenv "SIMPLEMAIL" "1",
|
||||
# don't let the mail file grow
|
||||
unlink "/var/mail/%n"
|
||||
}
|
||||
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user