home · contact · privacy
Added client commands config error check condition: third token longer than one char.
[plomrogue] / src / client / main.c
index 2b6c18ad72f50284d6399431f6b5615c8f94c172..c7ac6f1a94a771f36577f899e68581bd0bd85124 100644 (file)
@@ -24,7 +24,8 @@ int main(int argc, char * argv[])
     char * f_name = "main()";
 
     /* Declare hard-coded paths here. */
-    world.path_server_in = "server/in";
+    world.path_server_in      = "server/in";
+    world.path_commands       = "confclient/commands";
     world.path_interface_conf = "confclient/interface_conf";
 
     /* Parse command line arguments. */
@@ -34,11 +35,11 @@ int main(int argc, char * argv[])
     set_cleanup_func(cleanup);
 
     /* Initialize the whole interface. */
-    world.windb.t_screen = initscr();
+    world.winDB.t_screen = initscr();
     set_cleanup_flag(CLEANUP_NCURSES);
     noecho();
     curs_set(0);
-    keypad(world.windb.t_screen, TRUE);
+    keypad(world.winDB.t_screen, TRUE);
     init_command_db();      /* The command DB needs to be initialized before  */
     load_interface_conf();  /* the interface, whose keybindings depend on it. */