summaryrefslogtreecommitdiffstats
path: root/larn/config.c
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1993-03-21 09:45:37 +0000
committercgd <cgd@NetBSD.org>1993-03-21 09:45:37 +0000
commit77e3814f0c0e3dea4d0032e25666f77e6f83bfff (patch)
tree7eddfcbf3dd12089e71dc3fafb0a106c5c5766c7 /larn/config.c
parente81d63576b2e46ab90da7d75fa155ea57ee4d32e (diff)
downloadbsdgames-darwin-77e3814f0c0e3dea4d0032e25666f77e6f83bfff.tar.gz
bsdgames-darwin-77e3814f0c0e3dea4d0032e25666f77e6f83bfff.tar.zst
bsdgames-darwin-77e3814f0c0e3dea4d0032e25666f77e6f83bfff.zip
initial import of 386bsd-0.1 sources
Diffstat (limited to 'larn/config.c')
-rw-r--r--larn/config.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/larn/config.c b/larn/config.c
new file mode 100644
index 00000000..ccdd6d5f
--- /dev/null
+++ b/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 */
+