Search
lxdream.org :: lxdream/src/main.c
lxdream 0.9.1
released Jun 29
Download Now
filename src/main.c
changeset 25:fa2d21d57942
prev11:0a82ef380c45
next27:1ef09a52cd1e
author nkeynes
date Sat Dec 24 08:02:18 2005 +0000 (18 years ago)
permissions -rw-r--r--
last change More structure reorgs/fixes
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 "gui/gui.h"
    13 #include "sh4core.h"
    14 #include "sh4dasm.h"
    15 #include "aica/armdasm.h"
    16 #include "mem.h"
    18 debug_info_t main_debug;
    20 const cpu_desc_t cpu_descs[4] = { &sh4_cpu_desc, &arm_cpu_desc, &armt_cpu_desc, NULL };
    22 int
    23 main (int argc, char *argv[])
    24 {
    25   GtkWidget *debug_win;
    27 #ifdef ENABLE_NLS
    28   bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
    29   textdomain (PACKAGE);
    30 #endif
    31   gnome_init ("dreamon", VERSION, argc, argv);
    32   init_gui();
    33   debug_win = create_debug_win ();
    34   main_debug = init_debug_win(debug_win, cpu_descs);
    35   video_open();
    36   dreamcast_init();
    37   init_mmr_win(); /* Note: must be done after sh4_init */
    38   sh4_reset();
    39   update_gui();
    40   gtk_widget_show (debug_win);
    41   set_disassembly_region( main_debug, 0xA0000000 );
    42   // mem_new_watch( 0x0C204818, 0x0C204830, WATCH_WRITE );
    44   emit( main_debug, EMIT_INFO, -1, "DreamOn! ready..." );
    46   gtk_main ();
    47   return 0;
    48 }
.