]> git.pond.sub.org Git - empserver/commitdiff
Document interpretation of relative file names.
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 19 Feb 2006 18:33:02 +0000 (18:33 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 19 Feb 2006 18:33:02 +0000 (18:33 +0000)
include/econfig-spec.h
src/lib/global/path.c.in

index 63bbaa5c3faa46acfc90a637c884cdd9b6ad14b7..e00010e325941ca861591daafdd0b20194b12b59 100644 (file)
@@ -73,6 +73,8 @@ EMPCFBOTH("data", gamedir, char *, NSC_STRING, KM_INTERNAL,
     "Directory where this game's data is stored")
 EMPCFBOTH("info", infodir, char *, NSC_STRING, KM_INTERNAL,
     "Directory where info pages are stored, can be shared among games")
+EMPCF_COMMENT("# Note: Use an absolute name here, the interpretation of a relative\n"
+             "# name may change.")
 EMPCFBOTH("builtin", builtindir, char *, NSC_STRING, KM_INTERNAL,
     "Directory where builtin files are stored")
 EMPCF_COMMENT("# Set this to your source tree's src/lib/global to run the server\n"
index 33781811fd55ef9c92e17c4be598d53a634e02c6..260fb7956e9655fe5cfa75c97dcba56dbd7309ad 100644 (file)
 /* econfig file to try when user doesn't specify one */
 char dflt_econfig[] = "@econfig@";
 
-/* Where to find configuration, which is wherever econfig is looked for */
+/*
+ * Where to find configuration (absolute file name)
+ * This is wherever econfig is actually looked for.
+ */
 char *configdir;
 
-/* User configuration tables to load, relative to configdir */
+/* User configuration tables to load (relative to configdir) */
 char *config_tables = "";
 
-/* Where to find built-in configuration tables */
+/* Where to find built-in configuration tables  (relative to configdir) */
 char *builtindir = "@builtindir@";
 
-/* Where to find info pages */
+/* Where to find info pages (relative to gamedir) */
+/* TODO UI wart, make it relative to configdir */
 char *infodir  = "@einfodir@";
 
-/* Where this game's data is stored */
+/* Where this game's data is stored (relative to configdir) */
 char *gamedir  = "@gamedir@";
 
-/* relative to DATADIR */
+/* These are relative to gamedir: */
 char *teldir   = "tel";
 char *motdfil  = "motd";
 char *downfil  = "down";