Make econfig keys data and info work for relative names
File names in econfig need to be interpreted relative to configdir. This wasn't the case everywhere for keys data and info. Fix this by changing variables gamedir and infodir to hold absolute names. Change builtindir likewise, for consistency. Store the values from econfig in gamedir_conf, infodir_conf and builtindir_conf. Uses new fnameat() to derive absolute names from possibly relative ones.
This commit is contained in:
parent
7379041d26
commit
4bb23dd1a6
6 changed files with 95 additions and 15 deletions
|
@ -45,6 +45,9 @@ extern char dflt_econfig[];
|
|||
#undef EMP_CONFIG_H_OUTPUT
|
||||
|
||||
extern char *configdir;
|
||||
extern char *builtindir;
|
||||
extern char *gamedir;
|
||||
extern char *infodir;
|
||||
extern char *schedulefil;
|
||||
|
||||
extern char motdfil[];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue