filename | src/main.c |
changeset | 30:89b30313d757 |
prev | 27:1ef09a52cd1e |
next | 34:1dee8eb0b25e |
author | nkeynes |
date | Sun Dec 25 05:57:00 2005 +0000 (18 years ago) |
permissions | -rw-r--r-- |
last change | Change timeslice to nanoseconds (was microseconds) Generize single step (now steps through active CPU) Add lots of header blocks |
file | annotate | diff | log | raw |
1.1 --- a/src/main.c Sun Dec 25 01:28:39 2005 +00001.2 +++ b/src/main.c Sun Dec 25 05:57:00 2005 +00001.3 @@ -1,6 +1,22 @@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 + * $Id: main.c,v 1.7 2005-12-25 05:56:55 nkeynes Exp $1.9 + *1.10 + * Main program, initializes dreamcast and gui, then passes control off to1.11 + * the gtk main loop (currently).1.12 + *1.13 + * FIXME: Remove explicit GTK/Gnome references from this file1.14 + *1.15 + * Copyright (c) 2005 Nathan Keynes.1.16 + *1.17 + * This program is free software; you can redistribute it and/or modify1.18 + * it under the terms of the GNU General Public License as published by1.19 + * the Free Software Foundation; either version 2 of the License, or1.20 + * (at your option) any later version.1.21 + *1.22 + * This program is distributed in the hope that it will be useful,1.23 + * but WITHOUT ANY WARRANTY; without even the implied warranty of1.24 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1.25 + * GNU General Public License for more details.1.26 */1.28 #ifdef HAVE_CONFIG_H1.29 @@ -8,23 +24,21 @@1.30 #endif1.32 #include <gnome.h>1.33 -1.34 #include "gui/gui.h"1.35 #include "dream.h"1.36 #include "dreamcast.h"1.38 -int1.39 -main (int argc, char *argv[])1.40 +int main (int argc, char *argv[])1.41 {1.42 #ifdef ENABLE_NLS1.43 bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);1.44 textdomain (PACKAGE);1.45 #endif1.46 dreamcast_init();1.47 +1.48 gnome_init ("dreamon", VERSION, argc, argv);1.49 dreamcast_register_module( >k_gui_module );1.50 video_open();1.51 - // mem_new_watch( 0x0C204818, 0x0C204830, WATCH_WRITE );1.53 emit( main_debug, EMIT_INFO, -1, "DreamOn! ready..." );
.