Document interpretation of relative file names.
This commit is contained in:
parent
53a564d474
commit
b43d43392a
2 changed files with 12 additions and 6 deletions
|
@ -73,6 +73,8 @@ EMPCFBOTH("data", gamedir, char *, NSC_STRING, KM_INTERNAL,
|
||||||
"Directory where this game's data is stored")
|
"Directory where this game's data is stored")
|
||||||
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"
|
||||||
|
"# name may change.")
|
||||||
EMPCFBOTH("builtin", builtindir, char *, NSC_STRING, KM_INTERNAL,
|
EMPCFBOTH("builtin", builtindir, char *, NSC_STRING, KM_INTERNAL,
|
||||||
"Directory where builtin files are stored")
|
"Directory where builtin files are stored")
|
||||||
EMPCF_COMMENT("# Set this to your source tree's src/lib/global to run the server\n"
|
EMPCF_COMMENT("# Set this to your source tree's src/lib/global to run the server\n"
|
||||||
|
|
|
@ -40,22 +40,26 @@
|
||||||
/* econfig file to try when user doesn't specify one */
|
/* econfig file to try when user doesn't specify one */
|
||||||
char dflt_econfig[] = "@econfig@";
|
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;
|
char *configdir;
|
||||||
|
|
||||||
/* User configuration tables to load, relative to configdir */
|
/* User configuration tables to load (relative to configdir) */
|
||||||
char *config_tables = "";
|
char *config_tables = "";
|
||||||
|
|
||||||
/* Where to find built-in configuration tables */
|
/* Where to find built-in configuration tables (relative to configdir) */
|
||||||
char *builtindir = "@builtindir@";
|
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@";
|
char *infodir = "@einfodir@";
|
||||||
|
|
||||||
/* Where this game's data is stored */
|
/* Where this game's data is stored (relative to configdir) */
|
||||||
char *gamedir = "@gamedir@";
|
char *gamedir = "@gamedir@";
|
||||||
|
|
||||||
/* relative to DATADIR */
|
/* These are relative to gamedir: */
|
||||||
char *teldir = "tel";
|
char *teldir = "tel";
|
||||||
char *motdfil = "motd";
|
char *motdfil = "motd";
|
||||||
char *downfil = "down";
|
char *downfil = "down";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue