1*9cc7e274Sdholland /* $NetBSD: config.c,v 1.6 2008/01/28 05:38:53 dholland Exp $ */ 2210cab45Smycroft 361f28255Scgd /* 461f28255Scgd * config.c -- This defines the installation dependent variables. 561f28255Scgd * Some strings are modified later. ANSI C would 661f28255Scgd * allow compile time string concatenation, we must 761f28255Scgd * do runtime concatenation, in main. 861f28255Scgd * 961f28255Scgd * Larn is copyrighted 1986 by Noah Morgan. 1061f28255Scgd */ 11a8fba37dSchristos #include <sys/cdefs.h> 12a8fba37dSchristos #ifndef lint 13*9cc7e274Sdholland __RCSID("$NetBSD: config.c,v 1.6 2008/01/28 05:38:53 dholland Exp $"); 14a8fba37dSchristos #endif /* not lint */ 15a8fba37dSchristos 1661f28255Scgd #include "header.h" 1761f28255Scgd #include "pathnames.h" 1861f28255Scgd 1961f28255Scgd /* 2061f28255Scgd * All these strings will be appended to in main() to be complete filenames 2161f28255Scgd */ 2261f28255Scgd 2361f28255Scgd /* the game save filename */ 2461f28255Scgd char savefilename[1024]; 2561f28255Scgd 2661f28255Scgd /* the logging file */ 2761f28255Scgd char logfile[] = _PATH_LOG; 2861f28255Scgd 2961f28255Scgd /* the help text file */ 3061f28255Scgd char helpfile[] = _PATH_HELP; 3161f28255Scgd 3261f28255Scgd /* the score file */ 3361f28255Scgd char scorefile[] = _PATH_SCORE; 3461f28255Scgd 3561f28255Scgd /* the maze data file */ 3661f28255Scgd char larnlevels[] = _PATH_LEVELS; 3761f28255Scgd 3861f28255Scgd /* the .larnopts filename */ 3961f28255Scgd char optsfile[1024] = "/.larnopts"; 4061f28255Scgd 4161f28255Scgd /* the player id datafile name */ 4261f28255Scgd char playerids[] = _PATH_PLAYERIDS; 4361f28255Scgd 4461f28255Scgd char diagfile[] = "Diagfile"; /* the diagnostic filename */ 4561f28255Scgd char ckpfile[] = "Larn12.0.ckp"; /* the checkpoint filename */ 46*9cc7e274Sdholland const char *password = "pvnert(x)"; /* the wizards password <=32 */ 4761f28255Scgd char psname[PSNAMESIZE] = "larn"; /* the process name */ 4861f28255Scgd 4961f28255Scgd #define WIZID 1 5061f28255Scgd int wisid = 0; /* the user id of the only person who can be wizard */ 51