Mercurial > hg > early-roguelike
diff rogue4/mach_dep.c @ 26:ea7372f5d314
rogue4: add logging all games
author | edwarj4 |
---|---|
date | Thu, 26 Nov 2009 03:02:13 +0000 |
parents | 107a467612fb |
children | 2dcd75e6a736 |
line wrap: on
line diff
--- a/rogue4/mach_dep.c Tue Nov 24 13:04:43 2009 +0000 +++ b/rogue4/mach_dep.c Thu Nov 26 03:02:13 2009 +0000 @@ -82,6 +82,16 @@ 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