25#ifdef FREECIV_MSWINDOWS
63int main(
int argc,
char **argv)
67 int exit_status = EXIT_SUCCESS;
70#ifdef FREECIV_MSWINDOWS
71# ifndef FREECIV_NDEBUG
72 if (LoadLibrary(
"exchndl.dll") == NULL) {
74 fprintf(stderr,
"exchndl.dll could not be loaded, no crash debugger\n");
104 if (ui_options != -1) {
125 exit_status = EXIT_FAILURE;
145 bool ui_separator =
FALSE;
152 argv[1 + ui_options] = argv[i];
154 }
else if (
is_option(
"--help", argv[i])) {
158 R__(
"Print a summary of the options"));
160 R__(
"Print the version number"));
163 R__(
"ruleset RULESET"),
164 R__(
"Ruleset to use as the starting point."));
165#ifndef FREECIV_NDEBUG
168 R__(
"Fatal [SIGNAL]"),
169 R__(
"Raise a signal on failed assertion"));
177 }
else if (
is_option(
"--version", argv[i])) {
183 fc_fprintf(stderr,
R__(
"Can only edit one ruleset at a time.\n"));
187#ifndef FREECIV_NDEBUG
188 }
else if (
is_option(
"--Fatal", argv[i])) {
189 if (i + 1 >= argc ||
'-' == argv[i + 1][0]) {
203 fc_fprintf(stderr,
R__(
"Unrecognized option: \"%s\"\n"), argv[i]);
218#ifdef RULEDIT_EXPERIMENTAL
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 cmdline_option_values_free(void)
void libfreeciv_free(void)
static void i_am_tool(void)
const char * get_internal_encoding(void)
static char void init_character_encodings(const char *my_internal_encoding, bool my_use_transliteration)
#define FC_DEFAULT_DATA_ENCODING
void fc_fprintf(FILE *stream, const char *format,...) fc__attribute((__format__(__printf__
const char * get_locale_dir(void)
#define bindtextdomain(Package, Directory)
void game_init(bool keep_ruleset_value)
void log_init(const char *filename, enum log_level initial_level, log_callback_fn callback, log_prefix_fn prefix, int fatal_assertions)
#define log_error(message,...)
void registry_module_init(void)
void registry_module_close(void)
struct ruledit_arguments reargs
int main(int argc, char **argv)
static int re_parse_cmdline(int argc, char *argv[])
void show_experimental(QWidget *wdg)
static int fatal_assertions
int ruledit_qt_run(int argc, char **argv)
void init_connections(void)
void settings_init(bool act)
bool str_to_int(const char *str, int *pint)
struct packet_game_info info
const char * freeciv_name_version(void)