]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - larn/config.c
ctime can return NULL.
[bsdgames-darwin.git] / larn / config.c
1 /* $NetBSD: config.c,v 1.6 2008/01/28 05:38:53 dholland Exp $ */
2
3 /*
4 * config.c -- This defines the installation dependent variables.
5 * Some strings are modified later. ANSI C would
6 * allow compile time string concatenation, we must
7 * do runtime concatenation, in main.
8 *
9 * Larn is copyrighted 1986 by Noah Morgan.
10 */
11 #include <sys/cdefs.h>
12 #ifndef lint
13 __RCSID("$NetBSD: config.c,v 1.6 2008/01/28 05:38:53 dholland Exp $");
14 #endif /* not lint */
15
16 #include "header.h"
17 #include "pathnames.h"
18
19 /*
20 * All these strings will be appended to in main() to be complete filenames
21 */
22
23 /* the game save filename */
24 char savefilename[1024];
25
26 /* the logging file */
27 char logfile[] = _PATH_LOG;
28
29 /* the help text file */
30 char helpfile[] = _PATH_HELP;
31
32 /* the score file */
33 char scorefile[] = _PATH_SCORE;
34
35 /* the maze data file */
36 char larnlevels[] = _PATH_LEVELS;
37
38 /* the .larnopts filename */
39 char optsfile[1024] = "/.larnopts";
40
41 /* the player id datafile name */
42 char playerids[] = _PATH_PLAYERIDS;
43
44 char diagfile[] = "Diagfile"; /* the diagnostic filename */
45 char ckpfile[] = "Larn12.0.ckp"; /* the checkpoint filename */
46 const char *password = "pvnert(x)"; /* the wizards password <=32 */
47 char psname[PSNAMESIZE] = "larn"; /* the process name */
48
49 #define WIZID 1
50 int wisid = 0; /* the user id of the only person who can be wizard */