(read_config_table_file, read_custom_table_file): Rename.
/* 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")
+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")
EMPCFBOTH("info", infodir, char *, NSC_STRING, KM_INTERNAL,
extern int check_trade_ok(struct trdstr *);
/* conftab.c */
extern int read_builtin_tables(void);
-extern int read_config_tables(void);
+extern int read_custom_tables(void);
/* ef_verify.c */
/* in file.h */
/* fsize.c */
#include "optlist.h"
#include "file.h"
-static int read_config_table_file(char *);
+static int read_custom_table_file(char *);
int
read_builtin_tables(void)
* Return 0 on success, -1 on failure.
*/
int
-read_config_tables(void)
+read_custom_tables(void)
{
- char *tmp = strdup(config_tables);
+ char *tmp = strdup(custom_tables);
char *fname;
int res = 0;
for (fname = strtok(tmp, " \t"); fname; fname = strtok(NULL, " \t")) {
- if (read_config_table_file(fname) < 0)
+ if (read_custom_table_file(fname) < 0)
res = -1;
}
* Return 0 on success, -1 on error.
*/
static int
-read_config_table_file(char *fname)
+read_custom_table_file(char *fname)
{
int res, n;
FILE *fp;
# Do not edit this file to customize a game! Create your own custom
# configuration file(s), best next to your econfig, and name them in
-# econfig key config_tables.
+# econfig key custom_tables.
config land-chr
type name l_b h_b tech cost ...
# Do not edit this file to customize a game! Create your own custom
# configuration file(s), best next to your econfig, and name them in
-# econfig key config_tables.
+# econfig key custom_tables.
config nuke-chr
type name l_b h_b o_b r_b bla dam cost tech wei flags
char *configdir;
/* User configuration tables to load (relative to configdir) */
-char *config_tables = "";
+char *custom_tables = "";
/* Where to find built-in configuration tables (relative to configdir) */
char *builtindir = "@builtindir@";
# Do not edit this file to customize a game! Create your own custom
# configuration file(s), best next to your econfig, and name them in
-# econfig key config_tables.
+# econfig key custom_tables.
config plane-chr
type name l_b h_b cre tech cost ...
# Do not edit this file to customize a game! Create your own custom
# configuration file(s), best next to your econfig, and name them in
-# econfig key config_tables.
+# econfig key custom_tables.
config ship-chr
type name l_b h_b tech cost ...
fprintf(stderr, "Can't chdir to %s (%s)\n", configdir, strerror(errno));
exit(EXIT_FAILURE);
}
- if (read_config_tables() < 0)
+ if (read_custom_tables() < 0)
exit(EXIT_FAILURE);
if (chdir(gamedir)) {
fprintf(stderr, "Can't chdir to %s (%s)\n", gamedir, strerror(errno));