New way to read configuration tables:
(config_tables): New econfig key. (read_config_tables): New, implements config_tables. (main): Call it. Need to call ef_init() and chdir(configdir) first. (ef_init_srv): Don't call ef_init(), since main() did it already. Remove old way to do the same: (ef_load): Remove, along with calls. (empfile): Set configuration tables' member file back to NULL.
This commit is contained in:
parent
e4865d473e
commit
bd65a84eb5
8 changed files with 68 additions and 43 deletions
|
@ -67,6 +67,8 @@ EMPCFBOTH((fvname), (vname), int, NSC_INT, KM_OPTION, (descr))
|
|||
/* econfig key definitions: */
|
||||
|
||||
EMPCF_COMMENT("\n### Server configuration and information")
|
||||
EMPCFBOTH("config_tables", config_tables, char *, NSC_STRING, KM_INTERNAL,
|
||||
"Configuration table files, separated by space, relative to econfig's directory")
|
||||
EMPCFBOTH("data", gamedir, char *, NSC_STRING, KM_INTERNAL,
|
||||
"Directory where this game's data is stored")
|
||||
EMPCFBOTH("info", infodir, char *, NSC_STRING, KM_INTERNAL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue