| 46 |
|
|
| 47 |
static t_conf_table param_conf_table[]={ |
static t_conf_table param_conf_table[]={ |
| 48 |
{ "-c", offsetof(t_param,prefs_file), conf_type_str, 0, D2CS_DEFAULT_CONF_FILE}, |
{ "-c", offsetof(t_param,prefs_file), conf_type_str, 0, D2CS_DEFAULT_CONF_FILE}, |
| 49 |
{ "--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 }, |
| 50 |
|
{ "--charstatus",offsetof(t_param,cs_file), conf_type_str, 0, CHAR_STATUS_DUMP_FILE }, |
| 51 |
{ "-l", offsetof(t_param,logfile), conf_type_str, 0, NULL }, |
{ "-l", offsetof(t_param,logfile), conf_type_str, 0, NULL }, |
| 52 |
{ "-h", offsetof(t_param,help), conf_type_bool,0, NULL }, |
{ "-h", offsetof(t_param,help), conf_type_bool,0, NULL }, |
| 53 |
{ "--help", offsetof(t_param,help), conf_type_bool,0, NULL }, |
{ "--help", offsetof(t_param,help), conf_type_bool,0, NULL }, |
| 69 |
static char help_message[]="\n" |
static char help_message[]="\n" |
| 70 |
"Usage: d2cs [<options>]\n" |
"Usage: d2cs [<options>]\n" |
| 71 |
" -m <FILE>: set memory debug logging file to FILE\n" |
" -m <FILE>: set memory debug logging file to FILE\n" |
| 72 |
|
" --gsscope <FILE>: set game server scope configuration file to FILE\n" |
| 73 |
|
" --charstatus <FILE>: set character status dump file to FILE\n" |
| 74 |
" -c <FILE>: set configuration file to FILE\n" |
" -c <FILE>: set configuration file to FILE\n" |
| 75 |
" -l <FILE>: set log to FILE\n" |
" -l <FILE>: set log to FILE\n" |
| 76 |
" -h, --help: show this help message and exit\n" |
" -h, --help: show this help message and exit\n" |
| 124 |
return cmdline_param.scope_file; |
return cmdline_param.scope_file; |
| 125 |
} |
} |
| 126 |
|
|
| 127 |
|
extern char const * cmdline_get_charstatus_file(void) |
| 128 |
|
{ |
| 129 |
|
return cmdline_param.cs_file; |
| 130 |
|
} |
| 131 |
|
|
| 132 |
extern unsigned int cmdline_get_help(void) |
extern unsigned int cmdline_get_help(void) |
| 133 |
{ |
{ |
| 134 |
return cmdline_param.help; |
return cmdline_param.help; |