rogue5: add savedir, logfile, bugfixes

This commit is contained in:
John "Elwin" Edwards 2010-05-24 20:16:15 +00:00
parent 3741c4867d
commit 53a15a3e2e
13 changed files with 2124 additions and 1397 deletions

View file

@ -129,6 +129,21 @@ open_score(void)
#endif
}
void
open_log(void)
{
#ifdef LOGFILE
logfi = fopen(LOGFILE, "a");
if (logfi == NULL)
{
fprintf(stderr, "Could not open %s for appending: %s\n", LOGFILE,
strerror(errno));
fflush(stderr);
}
#endif
return;
}
/*
* getltchars:
* Get the local tty chars for later use
@ -163,6 +178,7 @@ setup(void)
raw(); /* Raw mode */
noecho(); /* Echo off */
nonl();
keypad(stdscr,1);
getltchars(); /* get the local tty chars */
}