--- pvpgn-1.7.4/src/d2cs/cmdline_parse.c 2006/06/06 03:41:38 1.1 +++ pvpgn-1.7.4/src/d2cs/cmdline_parse.c 2006/06/13 16:07:52 1.2 @@ -46,7 +46,8 @@ static t_conf_table param_conf_table[]={ { "-c", offsetof(t_param,prefs_file), conf_type_str, 0, D2CS_DEFAULT_CONF_FILE}, - { "--gsscope", offsetof(t_param,scope_file), conf_type_str, 0, D2GS_SCOPE_CONF_FILE}, + { "--gsscope", offsetof(t_param,scope_file), conf_type_str, 0, D2GS_SCOPE_CONF_FILE }, + { "--charstatus",offsetof(t_param,cs_file), conf_type_str, 0, CHAR_STATUS_DUMP_FILE }, { "-l", offsetof(t_param,logfile), conf_type_str, 0, NULL }, { "-h", offsetof(t_param,help), conf_type_bool,0, NULL }, { "--help", offsetof(t_param,help), conf_type_bool,0, NULL }, @@ -68,6 +69,8 @@ static t_param cmdline_param; static char help_message[]="\n" "Usage: d2cs []\n" " -m : set memory debug logging file to FILE\n" +" --gsscope : set game server scope configuration file to FILE\n" +" --charstatus : set character status dump file to FILE\n" " -c : set configuration file to FILE\n" " -l : set log to FILE\n" " -h, --help: show this help message and exit\n" @@ -121,6 +124,11 @@ extern char const * cmdline_get_gsscope_ return cmdline_param.scope_file; } +extern char const * cmdline_get_charstatus_file(void) +{ + return cmdline_param.cs_file; +} + extern unsigned int cmdline_get_help(void) { return cmdline_param.help;