We can now override the docfile location.
[super-star-trek.git] / sst.c
diff --git a/sst.c b/sst.c
index b3a0202663bd5d6760366c82f8a1bf73d4f24545..ae209e2cb373ed7cf7ad8a156e1fbf01b55bc092 100644 (file)
--- a/sst.c
+++ b/sst.c
@@ -6,6 +6,10 @@
 #include <dos.h>\r
 #endif\r
 #include <time.h>\r
+\r
+#ifndef SSTDOC\r
+#define SSTDOC "sst.doc"\r
+#endif\r
        \r
 int getch(void);\r
 \r
@@ -135,7 +139,7 @@ static void helpme(void) {
                cmdbuf[j] = toupper(commands[i][j]);\r
            cmdbuf[j] = '\0';\r
        }\r
-       fp = fopen("sst.doc", "r");\r
+       fp = fopen(SSTDOC, "r");\r
        if (fp == NULL) {\r
                prout("Spock-  \"Captain, that information is missing from the");\r
                prout("   computer. You need to find SST.DOC and put it in the");\r