]> git.pond.sub.org Git - empserver/commitdiff
(gamedir): Not all programs treat relative names the same. Document
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 3 Aug 2007 04:44:54 +0000 (04:44 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Fri, 3 Aug 2007 04:44:54 +0000 (04:44 +0000)
the lossage.

include/econfig-spec.h
src/lib/global/path.c.in

index 4544f76e8b3fc15a3fdb38c8b1a504126db6f3b3..84812dc4194594efdd7abc0ac713feaf33b3b79a 100644 (file)
@@ -75,6 +75,8 @@ EMPCFBOTH("custom_tables", custom_tables, char *, NSC_STRING, KM_INTERNAL,
     "Custom configuration table files, separated by space")
 EMPCFBOTH("data", gamedir, char *, NSC_STRING, KM_INTERNAL,
     "Directory where this game's data is stored")
+EMPCF_COMMENT("# Note: Use an absolute name here, the interpretation of a relative\n"
+             "# name may change.")
 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"
@@ -110,7 +112,6 @@ EMPCFBOTH("update_window", update_window, int, NSC_INT, 0,
     "Time window the update will occur in after the update time, in seconds")
 EMPCFBOTH("pre_update_hook", pre_update_hook, char *, NSC_STRING, KM_INTERNAL,
     "Shell command run right before the update.")
-
 EMPCFBOTH("update_demand", update_demand, int, NSC_INT, 0,
     "Demand update policy")
 EMPCF_COMMENT("# 0 - No demand updates\n"
index 8b8b836eb0e3989162dceef50c9bd9044c4ac354..6beab74b92cacfaf5b261d814f86039f8a2bd924 100644 (file)
@@ -52,7 +52,7 @@ char *custom_tables = "";
 /* Update schedule (absolute file name) */
 char *schedulefil;
 
-/* Where to find built-in configuration tables  (relative to configdir) */
+/* Where to find built-in configuration tables (relative to configdir) */
 char *builtindir = "@builtindir@";
 
 /* Where to find info pages (relative to gamedir) */
@@ -60,6 +60,7 @@ char *builtindir = "@builtindir@";
 char *infodir  = "@einfodir@";
 
 /* Where this game's data is stored (relative to configdir) */
+/* FIXME relative broken in utility programs */
 char *gamedir  = "@gamedir@";
 
 /* These are relative to gamedir: */