#include <stdio.h> /* printf() */
#include <stdlib.h> /* exit() */
-#include "../common/err_try_fgets.h" /* set_err_try_fgets_delim() */
#include "../common/rexit.h" /* exit_err, set_cleanup_func() */
#include "cleanup.h" /* set_cleanup_flag(), cleanup() */
-#include "init.h" /* run_game(), obey_argv(), obey_argv(), setup_server_io(),
- * init_map_and_map_object_configs()
- */
+#include "configfile.h" /* read_config_file() */
+#include "init.h" /* run_game(), obey_argv(), obey_argv(), setup_server_io() */
#include "world.h" /* struct World */
exit_err(-1 == test, printf_err);
}
}
- world.path_map_obj_defs = "confserver/map_objects";
- world.path_map_obj_acts = "confserver/map_object_actions";
+ world.path_config = "confserver/world";
world.path_worldstate = "server/worldstate";
world.path_out = "server/out";
world.path_in = "server/in";
world.path_record = "record";
world.tmp_suffix = "_tmp";
- set_err_try_fgets_delim("%%\n");
- /* Init map, map object configurations and server i/o files. */
- init_map_and_map_objects_configs();
+ /* Init config file and server i/o files. */
+ read_config_file();
setup_server_io();
/* Enter play or replay mode loops, then leave properly. */