(gamedir): Not all programs treat relative names the same. Document

the lossage.
This commit is contained in:
Markus Armbruster 2007-08-03 04:44:54 +00:00
parent f1094fbdc6
commit a1646c8aa7
2 changed files with 4 additions and 2 deletions

View file

@ -75,6 +75,8 @@ EMPCFBOTH("custom_tables", custom_tables, char *, NSC_STRING, KM_INTERNAL,
"Custom configuration table files, separated by space") "Custom configuration table files, separated by space")
EMPCFBOTH("data", gamedir, char *, NSC_STRING, KM_INTERNAL, EMPCFBOTH("data", gamedir, char *, NSC_STRING, KM_INTERNAL,
"Directory where this game's data is stored") "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, EMPCFBOTH("info", infodir, char *, NSC_STRING, KM_INTERNAL,
"Directory where info pages are stored, can be shared among games") "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" 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") "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, EMPCFBOTH("pre_update_hook", pre_update_hook, char *, NSC_STRING, KM_INTERNAL,
"Shell command run right before the update.") "Shell command run right before the update.")
EMPCFBOTH("update_demand", update_demand, int, NSC_INT, 0, EMPCFBOTH("update_demand", update_demand, int, NSC_INT, 0,
"Demand update policy") "Demand update policy")
EMPCF_COMMENT("# 0 - No demand updates\n" EMPCF_COMMENT("# 0 - No demand updates\n"

View file

@ -52,7 +52,7 @@ char *custom_tables = "";
/* Update schedule (absolute file name) */ /* Update schedule (absolute file name) */
char *schedulefil; 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@"; char *builtindir = "@builtindir@";
/* Where to find info pages (relative to gamedir) */ /* Where to find info pages (relative to gamedir) */
@ -60,6 +60,7 @@ char *builtindir = "@builtindir@";
char *infodir = "@einfodir@"; char *infodir = "@einfodir@";
/* Where this game's data is stored (relative to configdir) */ /* Where this game's data is stored (relative to configdir) */
/* FIXME relative broken in utility programs */
char *gamedir = "@gamedir@"; char *gamedir = "@gamedir@";
/* These are relative to gamedir: */ /* These are relative to gamedir: */