home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari FTP
/
ATARI_FTP_0693.zip
/
ATARI_FTP_0693
/
Games
/
larn12s.arc
/
LARN.ARC
/
CONFIG.C
< prev
next >
Wrap
C/C++ Source or Header
|
1987-10-28
|
3KB
|
102 lines
/*
* 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.
*
* Larn is copyrighted 1986 by Noah Morgan.
*/
#include "header.h"
#ifndef LARNHOME
#define LARNHOME "/usr/games/larn/" /* normally supplied by a Makefile */
#endif
#ifndef WIZID
#define WIZID 0
#endif
/*
* All these strings will be appended to in main() to be complete filenames
*/
# ifdef UNIX
/* the game save filename */
char savefilename[SAVEFILENAMESIZE] = LARNHOME;
/* the score file */
char scorefile[sizeof(LARNHOME)+sizeof(SCORENAME)] = LARNHOME;
/* the logging file */
char logfile[sizeof(LARNHOME)+sizeof(LOGFNAME)] = LARNHOME;
/* the help text file */
char helpfile[sizeof(LARNHOME)+sizeof(HELPNAME)] = LARNHOME;
/* the maze data file */
char larnlevels[sizeof(LARNHOME)+sizeof(LEVELSNAME)] = LARNHOME;
/* the fortune data file */
char fortfile[sizeof(LARNHOME)+sizeof(FORTSNAME)] = LARNHOME;
/* the .larnopts filename */
char optsfile[128]; /* the option file */
/* the player id datafile name */
char playerids[sizeof(LARNHOME)+sizeof(PLAYERIDS)] = LARNHOME;
# ifdef TIMECHECK
/* the holiday datafile */
char holifile[sizeof(LARNHOME)+sizeof(HOLIFILE)] = LARNHOME;
# endif
char ckpfile[] ="Larn12.ckp"; /* the checkpoint filename */
# ifdef EXTRA
char diagfile[] ="Diagfile"; /* the diagnostic filename */
# endif
# else /* ndef MSDOS */
/* For MSDOS, use fixed length files because of a bug in sizeof.
*/
# ifdef DGK
/* Make LARNHOME readable from the larnopt file into a lardir variable.
*/
char savefilename[PATHLEN];
char scorefile[PATHLEN];
char logfile[PATHLEN];
char helpfile[PATHLEN];
char larnlevels[PATHLEN];
char fortfile[PATHLEN];
char optsfile[PATHLEN];
char playerids[PATHLEN];
char ckpfile[PATHLEN];
char swapfile[PATHLEN];
char larndir[DIRLEN] = LARNHOME;
# else
char savefilename[PATHLEN] = LARNHOME;
char scorefile[PATHLEN] = LARNHOME;
char logfile[PATHLEN] = LARNHOME;
char helpfile[PATHLEN] = LARNHOME;
char larnlevels[PATHLEN] = LARNHOME;
char fortfile[PATHLEN] = LARNHOME;
char optsfile[PATHLEN] = LARNHOME;
char playerids[PATHLEN] = LARNHOME;
char swapfile[PATHLEN] = LARNHOME;
char ckpfile[PATHLEN] = LARNHOME;
# endif
# endif /* ndef MSDOS */
#ifdef GEMDOS
char cmdshell[PATHLEN] = CMDSHELL;
#endif
char *password ="pvnert(x)"; /* the wizards password <=32*/
#if WIZID == -1
int wisid=0; /* the user id of the only person who can be wizard */
#else
int wisid=WIZID; /* the user id of the only person who can be wizard */
#endif
char psname[PSNAMESIZE]="larn"; /* the process name */