1.1 --- a/src/main.c Sat Oct 06 09:03:24 2007 +0000
1.2 +++ b/src/main.c Tue Oct 16 12:27:28 2007 +0000
1.5 - * $Id: main.c,v 1.27 2007-10-06 09:00:10 nkeynes Exp $
1.6 + * $Id: main.c,v 1.28 2007-10-10 11:02:04 nkeynes Exp $
1.8 * Main program, initializes dreamcast and gui, then passes control off to
1.9 * the gtk main loop (currently).
1.15 -#include "gui/gui.h"
1.18 #include "syscall.h"
1.21 bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
1.22 textdomain (PACKAGE);
1.24 + gboolean ui_initialized = gui_parse_cmdline(&argc, &argv);
1.26 while( (opt = getopt_long( argc, argv, option_list, longopts, NULL )) != -1 ) {
1.28 @@ -127,28 +127,13 @@
1.29 dreamcast_load_config( config_file );
1.31 if( aica_program == NULL ) {
1.33 - gnome_init ("lxdream", VERSION, argc, argv);
1.35 - dreamcast_register_module( >k_gui_module );
1.36 - if( show_debugger ) {
1.37 - gtk_gui_show_debugger();
1.45 dreamcast_configure_aica_only();
1.46 mem_load_block( aica_program, 0x00800000, 2048*1024 );
1.47 if( s3m_file != NULL ) {
1.48 mem_load_block( s3m_file, 0x00810000, 2048*1024 - 0x10000 );
1.51 - gnome_init ("lxdream", VERSION, argc, argv);
1.52 - dreamcast_register_module( >k_gui_module );
1.53 - set_disassembly_cpu( main_debug, "ARM7" );
1.57 if( without_bios ) {
1.60 display_set_driver( &display_null_driver );
1.62 + gui_init(show_debugger);
1.64 gboolean initialized = FALSE;
1.65 for( i=0; display_driver_list[i] != NULL; i++ ) {
1.66 if( strcasecmp( display_driver_list[i]->name, display_driver_name ) == 0 ) {