summaryrefslogtreecommitdiffstats
path: root/larn/config.c
blob: 47aa03acd01f60d58dcef4fa0e86fab7b78f737a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*	$NetBSD: config.c,v 1.6 2008/01/28 05:38:53 dholland Exp $	 */

/*
 * config.c --	This defines the installation dependent variables.
 *              Some strings are modified later.  ANSI C would
 *              allow compile time string concatenation, we must
 *              do runtime concatenation, in main.
 *
 *		Larn is copyrighted 1986 by Noah Morgan.
 */
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: config.c,v 1.6 2008/01/28 05:38:53 dholland Exp $");
#endif /* not lint */

#include "header.h"
#include "pathnames.h"

/*
 * All these strings will be appended to in main() to be complete filenames
 */

/* the game save filename */
char  savefilename[1024];

/* the logging file */
char  logfile[] = _PATH_LOG;

/* the help text file */
char  helpfile[] = _PATH_HELP;

/* the score file */
char  scorefile[] = _PATH_SCORE;

/* the maze data file */
char  larnlevels[] = _PATH_LEVELS;

/* the .larnopts filename */
char  optsfile[1024] = "/.larnopts";

/* the player id datafile name */
char  playerids[] = _PATH_PLAYERIDS;

char  diagfile[] = "Diagfile";		/* the diagnostic filename */
char  ckpfile[] = "Larn12.0.ckp";	/* the checkpoint filename */
const char *password = "pvnert(x)";	/* the wizards password <=32 */
char  psname[PSNAMESIZE] = "larn";	/* the process name */

#define	WIZID	1
int   wisid = 0;	/* the user id of the only person who can be wizard */