32#ifdef FREECIV_MSWINDOWS
71#ifdef FREECIV_MSWINDOWS
72# ifndef FREECIV_NDEBUG
75 fprintf(
stderr,
"exchndl.dll could not be loaded, no crash debugger\n");
106#ifndef FREECIV_NDEBUG
127 "Use -m to enable the metaserver.\n"),
argv[
inx]);
199#ifdef FREECIV_IPV6_SUPPORT
240 _(
"Announce game in LAN using protocol PROTO "
241 "(IPv4/IPv6/none)"));
246 _(
"Enable database connection with configuration from "
249 _(
"Enable server authentication (requires --Database)."));
251 _(
"Allow guests to login if auth is enabled."));
253 _(
"Allow new users to login if auth is enabled."));
258 _(
"Listen for clients on ADDR"));
260 _(
"Connect to metaserver from this address"));
265 _(
"Set debug log level (one of f,e,w,n,v,d, or "
266 "d:file1,min,max:...)"));
271 _(
"Set debug log level (one of f,e,w,n,v)"));
273#ifndef FREECIV_NDEBUG
277 _(
"Raise a signal on failed assertion"));
282 _(
"Load saved game FILE"));
284 _(
"Print a summary of the options"));
288 _(
"Be known as ADDR at metaserver or LAN client"));
292 _(
"Use FILE as logfile"));
294 _(
"Notify metaserver and send server's info"));
297 _(
"Metaserver ADDR"),
298 _(
"Set ADDR as metaserver address"));
303 _(
"Set TYPE as server type in metaserver"));
306 _(
"Keep updating game information on metaserver even after "
311 _(
"Listen for clients on port PORT"));
315 _(
"Quit if no players for TIME seconds"));
317 _(
"When a game ends, exit instead of restarting"));
321 _(
"Save games to directory DIR"));
325 _(
"Save scenarios to directory DIR"));
329 _(
"Sets the server id to ID"));
333 _(
"Read startup script FILE"));
337 _(
"Use FILE as ranking logfile"));
340 _(
"ruleset RULESET"),
341 _(
"Load ruleset RULESET"));
346 _(
"Load ai module MODULE. Can appear multiple times"));
349 _(
"Print the version number"));
351 _(
"Warn about deprecated modpack constructs"));
364 _(
"Requested authentication with --auth, "
365 "but no --Database given\n"));
bool load_ai_module(const char *modname)
void init_our_capability(void)
void con_write(enum rfc_status rfc_status, const char *message,...)
void deprecation_warnings_enable(void)
void cmdhelp_destroy(struct cmdhelp *pcmdhelp)
void cmdhelp_display(struct cmdhelp *pcmdhelp, bool sort, bool gui_options, bool report_bugs)
struct cmdhelp * cmdhelp_new(const char *cmdname)
void cmdhelp_add(struct cmdhelp *pcmdhelp, const char *shortarg, const char *longarg, const char *helpstr,...)
bool is_option(const char *option_name, char *option)
char * get_option_malloc(const char *option_name, char **argv, int *i, int argc, bool gc)
void fc_fprintf(FILE *stream, const char *format,...) fc__attribute((__format__(__printf__
bool log_parse_level_str(const char *level_str, enum log_level *ret_level)
#define log_error(message,...)
void dont_run_as_root(const char *argv0, const char *fallback)
bool str_to_int(const char *str, int *pint)
int main(int argc, char *argv[])
struct server_arguments srvarg
void fc__noreturn srv_main(void)
void setup_interrupt_handlers(void)
struct civ_game::@32::@36::@40 meta_info
struct civ_game::@32::@36 server
bool metaconnection_persistent
char metaserver_addr[256]
char * scenarios_pathname
enum announce_type announce
int fc_strcasecmp(const char *str0, const char *str1)
#define sz_strlcpy(dest, src)
const char * freeciv_name_version(void)