Search
lxdream.org :: lxdream/src/main.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/main.c
changeset 27:1ef09a52cd1e
prev25:fa2d21d57942
next30:89b30313d757
author nkeynes
date Sun Dec 25 01:28:39 2005 +0000 (15 years ago)
permissions -rw-r--r--
last change Refactor all the GUI bits out of the main directory (except for a couple
lingering temporarily in loader.c
Fix a few timeslice issues
file annotate diff log raw
1.1 --- a/src/main.c Sat Dec 24 03:33:08 2005 +0000
1.2 +++ b/src/main.c Sun Dec 25 01:28:39 2005 +0000
1.3 @@ -10,35 +10,20 @@
1.4 #include <gnome.h>
1.5
1.6 #include "gui/gui.h"
1.7 -#include "sh4core.h"
1.8 -#include "sh4dasm.h"
1.9 -#include "aica/armdasm.h"
1.10 -#include "mem.h"
1.11 -
1.12 -debug_info_t main_debug;
1.13 -
1.14 -const cpu_desc_t cpu_descs[4] = { &sh4_cpu_desc, &arm_cpu_desc, &armt_cpu_desc, NULL };
1.15 +#include "dream.h"
1.16 +#include "dreamcast.h"
1.17
1.18 int
1.19 main (int argc, char *argv[])
1.20 {
1.21 - GtkWidget *debug_win;
1.22 -
1.23 #ifdef ENABLE_NLS
1.24 bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
1.25 textdomain (PACKAGE);
1.26 #endif
1.27 + dreamcast_init();
1.28 gnome_init ("dreamon", VERSION, argc, argv);
1.29 - init_gui();
1.30 - debug_win = create_debug_win ();
1.31 - main_debug = init_debug_win(debug_win, cpu_descs);
1.32 + dreamcast_register_module( &gtk_gui_module );
1.33 video_open();
1.34 - dreamcast_init();
1.35 - init_mmr_win(); /* Note: must be done after sh4_init */
1.36 - sh4_reset();
1.37 - update_gui();
1.38 - gtk_widget_show (debug_win);
1.39 - set_disassembly_region( main_debug, 0xA0000000 );
1.40 // mem_new_watch( 0x0C204818, 0x0C204830, WATCH_WRITE );
1.41
1.42 emit( main_debug, EMIT_INFO, -1, "DreamOn! ready..." );
.