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