summaryrefslogtreecommitdiffstats
path: root/games/larn/config.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-09-04 04:03:31 +0000
committerjkh <jkh@FreeBSD.org>1994-09-04 04:03:31 +0000
commit057afceb86e030ad65b0130436860d9a18066186 (patch)
treea0ced9c9b9278eb776d89cd2565c27ddcf020b51 /games/larn/config.c
parenteedec95276cdb8aef98e92c5371000f10b8d6ba7 (diff)
downloadFreeBSD-src-057afceb86e030ad65b0130436860d9a18066186.zip
FreeBSD-src-057afceb86e030ad65b0130436860d9a18066186.tar.gz
Bring in the 4.4 Lite games directory, modulo man page changes and segregation
of the x11 based games. I'm not going to tag the originals with bsd_44_lite and do this in two stages since it's just not worth it for this collection, and I've got directory renames to deal with that way. Bleah. Submitted by: jkh
Diffstat (limited to 'games/larn/config.c')
-rw-r--r--games/larn/config.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/games/larn/config.c b/games/larn/config.c
new file mode 100644
index 0000000..ccdd6d5
--- /dev/null
+++ b/games/larn/config.c
@@ -0,0 +1,47 @@
+/*
+ * 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"
+#include "pathnames.h"
+
+/*
+ * All these strings will be appended to in main() to be complete filenames
+ */
+
+/* the game save filename */
+char savefilename[1024];
+
+/* the logging file */
+char logfile[] = _PATH_LOG;
+
+/* the help text file */
+char helpfile[] = _PATH_HELP;
+
+/* the score file */
+char scorefile[] = _PATH_SCORE;
+
+/* the maze data file */
+char larnlevels[] = _PATH_LEVELS;
+
+/* the fortune data file */
+char fortfile[] = _PATH_FORTS;
+
+/* the .larnopts filename */
+char optsfile[1024] ="/.larnopts";
+
+/* the player id datafile name */
+char playerids[] = _PATH_PLAYERIDS;
+
+char diagfile[] ="Diagfile"; /* the diagnostic filename */
+char ckpfile[] ="Larn12.0.ckp"; /* the checkpoint filename */
+char *password ="pvnert(x)"; /* the wizards password <=32 */
+char psname[PSNAMESIZE]="larn"; /* the process name */
+
+#define WIZID 1
+int wisid=0; /* the user id of the only person who can be wizard */
+
OpenPOWER on IntegriCloud