filename | src/main.c |
changeset | 11:0a82ef380c45 |
prev | 9:2784c7660165 |
next | 25:fa2d21d57942 |
author | nkeynes |
date | Tue Dec 13 14:47:59 2005 +0000 (18 years ago) |
permissions | -rw-r--r-- |
last change | More work on load/save state - save state a little more structured now Memory save now in |
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 "aica/armdasm.h"
17 #include "mem.h"
19 debug_info_t main_debug;
21 const cpu_desc_t cpu_descs[4] = { &sh4_cpu_desc, &arm_cpu_desc, &armt_cpu_desc, NULL };
23 int
24 main (int argc, char *argv[])
25 {
26 GtkWidget *debug_win;
28 #ifdef ENABLE_NLS
29 bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
30 textdomain (PACKAGE);
31 #endif
32 gnome_init ("dreamon", VERSION, argc, argv);
33 init_gui();
34 debug_win = create_debug_win ();
35 main_debug = init_debug_win(debug_win, cpu_descs);
36 video_open();
37 dreamcast_init();
38 init_mmr_win(); /* Note: must be done after sh4_init */
39 sh4_reset();
40 update_gui();
41 gtk_widget_show (debug_win);
42 set_disassembly_region( main_debug, 0xA0000000 );
43 // mem_new_watch( 0x0C204818, 0x0C204830, WATCH_WRITE );
45 emit( main_debug, EMIT_INFO, -1, "DreamOn! ready..." );
47 gtk_main ();
48 return 0;
49 }
.