1 /* 2 * config.c -- This defines the installation dependent variables. 3 * Some strings are modified later. ANSI C would 4 * allow compile time string concatenation, we must 5 * do runtime concatenation, in main. 6 * 7 * Larn is copyrighted 1986 by Noah Morgan. 8 */ 9 #include "header.h" 10 11 #ifndef LARNHOME 12 #define LARNHOME "/usr/games/lib/larn/" /* normally supplied by a Makefile */ 13 #endif 14 15 #ifndef WIZID 16 #define WIZID 0 17 #endif 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[SAVEFILENAMESIZE] = LARNHOME; 25 26 /* the score file */ 27 char scorefile[sizeof(LARNHOME)+sizeof(SCORENAME)] = LARNHOME; 28 29 /* the logging file */ 30 char logfile[sizeof(LARNHOME)+sizeof(LOGFNAME)] = LARNHOME; 31 32 /* the help text file */ 33 char helpfile[sizeof(LARNHOME)+sizeof(HELPNAME)] = LARNHOME; 34 35 /* the maze data file */ 36 char larnlevels[sizeof(LARNHOME)+sizeof(LEVELSNAME)] = LARNHOME; 37 38 /* the fortune data file */ 39 char fortfile[sizeof(LARNHOME)+sizeof(FORTSNAME)] = LARNHOME; 40 41 /* the .larnopts filename */ 42 char optsfile[128] ="/.larnopts"; /* the option file */ 43 44 /* the player id datafile name */ 45 char playerids[sizeof(LARNHOME)+sizeof(PLAYERIDS)] = LARNHOME; 46 47 /* the holiday datafile */ 48 char holifile[sizeof(LARNHOME)+sizeof(HOLIFILE)] = LARNHOME; 49 50 char diagfile[] ="Diagfile"; /* the diagnostic filename */ 51 char ckpfile[] ="Larn12.0.ckp"; /* the checkpoint filename */ 52 char *password ="pvnert(x)"; /* the wizards password <=32*/ 53 #if WIZID == -1 54 int wisid=0; /* the user id of the only person who can be wizard */ 55 #else 56 int wisid=WIZID; /* the user id of the only person who can be wizard */ 57 #endif 58 char psname[PSNAMESIZE]="larn"; /* the process name */ 59