Search
lxdream.org :: lxdream/src/main.c
lxdream 0.9.1
released Jun 29
Download Now
filename src/main.c
changeset 9:2784c7660165
prev2:42349f6ea216
next11:0a82ef380c45
author nkeynes
date Thu Dec 08 13:38:00 2005 +0000 (15 years ago)
permissions -rw-r--r--
last change Generalise the core debug window to allow multiple instances.
Add cpu description structure to define different cpus for use by the
debug window, in preparation for ARM implementation
view annotate diff log raw
     1 /*
     2  * Initial main.c file generated by Glade. Edit as required.
     3  * Glade will not overwrite this file.
     4  */
     6 #ifdef HAVE_CONFIG_H
     7 #  include <config.h>
     8 #endif
    10 #include <gnome.h>
    12 #include "interface.h"
    13 #include "gui.h"
    14 #include "sh4core.h"
    15 #include "sh4dasm.h"
    16 #include "mem.h"
    18 debug_info_t main_debug;
    20 int
    21 main (int argc, char *argv[])
    22 {
    23   GtkWidget *debug_win;
    25 #ifdef ENABLE_NLS
    26   bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
    27   textdomain (PACKAGE);
    28 #endif
    29   gnome_init ("dreamon", VERSION, argc, argv);
    30   init_gui();
    31   debug_win = create_debug_win ();
    32   main_debug = init_debug_win(debug_win, &sh4_cpu_desc);
    33   video_open();
    34   dreamcast_init();
    35   init_mmr_win(); /* Note: must be done after sh4_init */
    36   sh4_reset();
    37   update_gui();
    38   gtk_widget_show (debug_win);
    39   set_disassembly_region( main_debug, 0xA0000000 );
    40   // mem_new_watch( 0x0C204818, 0x0C204830, WATCH_WRITE );
    42   emit( main_debug, EMIT_INFO, -1, "DreamOn! ready..." );
    44   gtk_main ();
    45   return 0;
    46 }
.