extern void init_command_db()
{
char * f_name = "init_command_db()";
- char * path = "confclient/commands";
- FILE * file = try_fopen(path, "r", f_name);
+ FILE * file = try_fopen(world.path_commands, "r", f_name);
uint32_t lines;
uint32_t linemax = textfile_sizes(file, &lines);
char line[linemax + 1];
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. */
char * log; /* log of player's activities */
char * path_server_in; /* path of server's input fifo */
char * path_interface_conf; /* path of interface configuration file */
+ char * path_commands; /* path of commands config file */
char * player_inventory; /* one-item-per-line string list of owned items */
uint16_t turn; /* world/game turn */
uint16_t player_score; /* player's score*/