rogue4: add logging all games

This commit is contained in:
John "Elwin" Edwards 2009-11-26 03:02:13 +00:00
parent f9c589b480
commit 4bc7038945
6 changed files with 75 additions and 2 deletions

View file

@ -82,6 +82,16 @@ open_score()
return;
}
void open_log(void)
{
#ifdef LOGFILE
lfd = open(LOGFILE, O_WRONLY | O_APPEND | O_CREAT, 0666);
#else
lfd = -1;
#endif
return;
}
/*
* setup:
* Get starting setup for all games