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