home · contact · privacy
Read interface config from one file (which can be set as command line argument)
[plomrogue] / src / client / main.c
index 51d5606c8ae9316095f9ee6808cbe0188d1f6d8a..473228c70840eb2af513dc51713539f690326d07 100644 (file)
@@ -17,12 +17,16 @@ struct World world;
 
 
 
-int main()
+int main(int argc, char * argv[])
 {
     char * f_name = "main()";
 
     /* Declare hard-coded paths here. */
     world.path_server_in = "server/in";
+    world.path_interface_conf = "confclient/interface_conf";
+
+    /* Parse command line arguments. */
+    obey_argv(argc, argv);
 
     /* So error exits also go through the client's cleanup() function. */
     set_cleanup_func(cleanup);