Search
lxdream.org :: lxdream/src/main.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/main.c
changeset 392:39e596b3b6dd
prev379:7e1c33a184d8
next402:85fd4a4582be
author nkeynes
date Tue Sep 18 10:48:57 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Remove debugger from default startup - now only shown if started with -D
file annotate diff log raw
1.1 --- a/src/main.c Wed Sep 12 09:21:01 2007 +0000
1.2 +++ b/src/main.c Tue Sep 18 10:48:57 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
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.7 *
1.8 * Main program, initializes dreamcast and gui, then passes control off to
1.9 * the gtk main loop (currently).
1.10 @@ -35,7 +35,7 @@
1.11
1.12 #define S3M_PLAYER "s3mplay.bin"
1.13
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.19 @@ -47,6 +47,7 @@
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.26
1.27 @@ -78,6 +79,9 @@
1.28 case 'd': /* Mount disc */
1.29 disc_file = optarg;
1.30 break;
1.31 + case 'D': /* Launch w/ debugger */
1.32 + show_debugger = TRUE;
1.33 + break;
1.34 case 's': /* AICA-only w/ S3M player */
1.35 aica_program = S3M_PLAYER;
1.36 s3m_file = optarg;
1.37 @@ -118,6 +122,9 @@
1.38 gnome_init ("lxdream", VERSION, argc, argv);
1.39 dreamcast_init();
1.40 dreamcast_register_module( &gtk_gui_module );
1.41 + if( show_debugger ) {
1.42 + gtk_gui_show_debugger();
1.43 + }
1.44 } else {
1.45 dreamcast_init();
1.46 }
.