X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fserver%2Fmain.c;h=33e539102beded5802016eadea339ea40f2cc77e;hb=6489cfca32023a529f70960a089c73e282d73941;hp=642a6fe5179c4f618d0b4aae7de148eb9177f3f1;hpb=c53b42dfc7e4de104f9189428dd5b9a0d431c00a;p=plomrogue
diff --git a/src/server/main.c b/src/server/main.c
index 642a6fe..33e5391 100644
--- a/src/server/main.c
+++ b/src/server/main.c
@@ -4,9 +4,9 @@
#include /* exit() */
#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 "hardcoded_strings.h" /* s */
+#include "init.h" /* run_game(), obey_argv(), obey_argv(), setup_server_io() */
#include "world.h" /* struct World */
@@ -21,6 +21,7 @@ int main(int argc, char ** argv)
set_cleanup_func(cleanup);
/* Init settings from command line / hard-coded values. Print start info. */
+ init_strings();
obey_argv(argc, argv);
if (world.is_verbose)
{
@@ -34,15 +35,9 @@ int main(int argc, char ** argv)
exit_err(-1 == test, printf_err);
}
}
- 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";
-
- /* 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. */