2008-01-28 08:38:53 +03:00
|
|
|
/* $NetBSD: config.c,v 1.6 2008/01/28 05:38:53 dholland Exp $ */
|
1993-08-02 21:18:41 +04:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
/*
|
1997-10-19 00:03:05 +04:00
|
|
|
* 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.
|
1993-03-21 12:45:37 +03:00
|
|
|
*
|
|
|
|
* Larn is copyrighted 1986 by Noah Morgan.
|
|
|
|
*/
|
1997-10-19 00:03:05 +04:00
|
|
|
#include <sys/cdefs.h>
|
|
|
|
#ifndef lint
|
2008-01-28 08:38:53 +03:00
|
|
|
__RCSID("$NetBSD: config.c,v 1.6 2008/01/28 05:38:53 dholland Exp $");
|
1997-10-19 00:03:05 +04:00
|
|
|
#endif /* not lint */
|
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
#include "header.h"
|
|
|
|
#include "pathnames.h"
|
|
|
|
|
|
|
|
/*
|
1997-10-19 00:03:05 +04:00
|
|
|
* All these strings will be appended to in main() to be complete filenames
|
1993-03-21 12:45:37 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* the game save filename */
|
1997-10-19 00:03:05 +04:00
|
|
|
char savefilename[1024];
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
/* the logging file */
|
1997-10-19 00:03:05 +04:00
|
|
|
char logfile[] = _PATH_LOG;
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
/* the help text file */
|
1997-10-19 00:03:05 +04:00
|
|
|
char helpfile[] = _PATH_HELP;
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
/* the score file */
|
1997-10-19 00:03:05 +04:00
|
|
|
char scorefile[] = _PATH_SCORE;
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
/* the maze data file */
|
1997-10-19 00:03:05 +04:00
|
|
|
char larnlevels[] = _PATH_LEVELS;
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
/* the .larnopts filename */
|
1997-10-19 00:03:05 +04:00
|
|
|
char optsfile[1024] = "/.larnopts";
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
/* the player id datafile name */
|
1997-10-19 00:03:05 +04:00
|
|
|
char playerids[] = _PATH_PLAYERIDS;
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1997-10-19 00:03:05 +04:00
|
|
|
char diagfile[] = "Diagfile"; /* the diagnostic filename */
|
|
|
|
char ckpfile[] = "Larn12.0.ckp"; /* the checkpoint filename */
|
2008-01-28 08:38:53 +03:00
|
|
|
const char *password = "pvnert(x)"; /* the wizards password <=32 */
|
1997-10-19 00:03:05 +04:00
|
|
|
char psname[PSNAMESIZE] = "larn"; /* the process name */
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
#define WIZID 1
|
1997-10-19 00:03:05 +04:00
|
|
|
int wisid = 0; /* the user id of the only person who can be wizard */
|