Search
lxdream.org :: lxdream/src/main.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/main.c
changeset 1:eea311cfd33e
next2:42349f6ea216
author nkeynes
date Sat Mar 13 00:03:32 2004 +0000 (17 years ago)
permissions -rw-r--r--
last change This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/main.c Sat Mar 13 00:03:32 2004 +0000
1.3 @@ -0,0 +1,42 @@
1.4 +/*
1.5 + * Initial main.c file generated by Glade. Edit as required.
1.6 + * Glade will not overwrite this file.
1.7 + */
1.8 +
1.9 +#ifdef HAVE_CONFIG_H
1.10 +# include <config.h>
1.11 +#endif
1.12 +
1.13 +#include <gnome.h>
1.14 +
1.15 +#include "interface.h"
1.16 +#include "gui.h"
1.17 +#include "sh4core.h"
1.18 +
1.19 +
1.20 +int
1.21 +main (int argc, char *argv[])
1.22 +{
1.23 + GtkWidget *debug_win;
1.24 +
1.25 +#ifdef ENABLE_NLS
1.26 + bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
1.27 + textdomain (PACKAGE);
1.28 +#endif
1.29 + gnome_init ("dreamon", VERSION, argc, argv);
1.30 +
1.31 + debug_win = create_debug_win ();
1.32 + init_debug_win(debug_win);
1.33 + video_open();
1.34 + machine_init();
1.35 + init_mmr_win(); /* Note: must be done after sh4_init */
1.36 + sh4_reset();
1.37 + update_registers();
1.38 + gtk_widget_show (debug_win);
1.39 + set_disassembly_region( 0xA0000000 );
1.40 + emit( EMIT_INFO, -1, "DreamOn! ready..." );
1.41 +
1.42 + gtk_main ();
1.43 + return 0;
1.44 +}
1.45 +
.