37#ifdef FREECIV_MSWINDOWS
80#ifdef FREECIV_MSWINDOWS
81# ifndef FREECIV_NDEBUG
84 fprintf(
stderr,
"exchndl.dll could not be loaded, no crash debugger\n");
118#ifndef FREECIV_NDEBUG
139 "Use -m to enable the metaserver.\n"),
argv[
inx]);
211#ifdef FREECIV_IPV6_SUPPORT
252 _(
"Announce game in LAN using protocol PROTO "
253 "(IPv4/IPv6/none)"));
258 _(
"Enable database connection with configuration from "
261 _(
"Enable server authentication (requires --Database)."));
263 _(
"Allow guests to login if auth is enabled."));
265 _(
"Allow new users to login if auth is enabled."));
270 _(
"Listen for clients on ADDR"));
272 _(
"Connect to metaserver from this address"));
277 _(
"Set debug log level (one of f,e,w,n,v,d, or "
278 "d:file1,min,max:...)"));
283 _(
"Set debug log level (one of f,e,w,n,v)"));
285#ifndef FREECIV_NDEBUG
289 _(
"Raise a signal on failed assertion"));
294 _(
"Load saved game FILE"));
296 _(
"Print a summary of the options"));
300 _(
"Be known as ADDR at metaserver or LAN client"));
304 _(
"Use FILE as logfile"));
306 _(
"Notify metaserver and send server's info"));
309 _(
"Metaserver ADDR"),
310 _(
"Set ADDR as metaserver address"));
315 _(
"Set TYPE as server type in metaserver"));
318 _(
"Keep updating game information on metaserver even after "
323 _(
"Listen for clients on port PORT"));
327 _(
"Quit if no players for TIME seconds"));
329 _(
"When a game ends, exit instead of restarting"));
333 _(
"Save games to directory DIR"));
337 _(
"Save scenarios to directory DIR"));
341 _(
"Sets the server id to ID"));
345 _(
"Read startup script FILE"));
349 _(
"Use FILE as ranking logfile"));
352 _(
"ruleset RULESET"),
353 _(
"Load ruleset RULESET"));
358 _(
"Load ai module MODULE. Can appear multiple times"));
361 _(
"Print the version number"));
363 _(
"Warn about deprecated modpack constructs"));
376 _(
"Requested authentication with --auth, "
377 "but no --Database given\n"));
bool load_ai_module(const char *modname)
void init_our_capability(void)
int main(int argc, char *argv[])
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)
struct server_arguments srvarg
void fc__noreturn srv_main(void)
void setup_interrupt_handlers(void)
struct civ_game::@31::@35 server
struct civ_game::@31::@35::@38 meta_info
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)