mirror of
https://github.com/tstellar/bygfoot.git
synced 2024-12-16 10:21:15 +01:00
added a debug-writer for debugging to console
This commit is contained in:
parent
0d6d5888b5
commit
3ebe2e242a
@ -66,6 +66,7 @@ main_parse_cl_arguments(gint *argc, gchar ***argv)
|
||||
*testcom_file = NULL, *token_file = NULL,
|
||||
*event_name = NULL, *debug_text = NULL;
|
||||
gint deb_level = -1, number_of_passes = 1,
|
||||
deb_writer = -1,
|
||||
num_matches = 100, skilldiffmax = 20;
|
||||
GError *error = NULL;
|
||||
GOptionContext *context = NULL;
|
||||
@ -75,6 +76,8 @@ main_parse_cl_arguments(gint *argc, gchar ***argv)
|
||||
|
||||
{ "debug-level", 'd', 0, G_OPTION_ARG_INT, &deb_level, "[developer] Debug level to use", "N" },
|
||||
|
||||
{ "debug-writer", 'w', 0, G_OPTION_ARG_INT, &deb_writer, "[developer] Debug writer level to use", "N" },
|
||||
|
||||
{ "lang", 'L', 0, G_OPTION_ARG_STRING, &lang, _("Language to use (a code like 'de')"), "CODE" },
|
||||
|
||||
{ "last-save", 'l', 0, G_OPTION_ARG_NONE, &load_last_save, _("Load last savegame"), NULL },
|
||||
@ -145,6 +148,9 @@ main_parse_cl_arguments(gint *argc, gchar ***argv)
|
||||
if(deb_level != -1)
|
||||
option_set_int("int_debug", &constants, deb_level);
|
||||
|
||||
if(deb_writer != -1)
|
||||
option_set_int("int_debug_writer", &constants, deb_writer);
|
||||
|
||||
if(lang != NULL)
|
||||
{
|
||||
language_set(language_get_code_index(lang) + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user