1.1 --- a/src/main.c Wed Sep 12 09:21:01 2007 +0000
1.2 +++ b/src/main.c Thu Sep 20 08:37:19 2007 +0000
1.5 - * $Id: main.c,v 1.23 2007-09-12 09:21:01 nkeynes Exp $
1.6 + * $Id: main.c,v 1.24 2007-09-18 10:48:57 nkeynes Exp $
1.8 * Main program, initializes dreamcast and gui, then passes control off to
1.9 * the gtk main loop (currently).
1.12 #define S3M_PLAYER "s3mplay.bin"
1.14 -char *option_list = "a:s:A:V:puhbd:c:t:x";
1.15 +char *option_list = "a:s:A:V:puhbd:c:t:xD";
1.16 struct option longopts[1] = { { NULL, 0, 0, 0 } };
1.17 char *aica_program = NULL;
1.18 char *s3m_file = NULL;
1.20 gboolean headless = FALSE;
1.21 gboolean without_bios = FALSE;
1.22 gboolean use_xlat = FALSE;
1.23 +gboolean show_debugger = FALSE;
1.24 uint32_t time_secs = 0;
1.25 uint32_t time_nanos = 0;
1.28 case 'd': /* Mount disc */
1.31 + case 'D': /* Launch w/ debugger */
1.32 + show_debugger = TRUE;
1.34 case 's': /* AICA-only w/ S3M player */
1.35 aica_program = S3M_PLAYER;
1.38 gnome_init ("lxdream", VERSION, argc, argv);
1.40 dreamcast_register_module( >k_gui_module );
1.41 + if( show_debugger ) {
1.42 + gtk_gui_show_debugger();