Search
lxdream.org :: lxdream/src/main.c
lxdream 0.9.1
released Jun 29
Download Now
filename src/main.c
changeset 30:89b30313d757
prev27:1ef09a52cd1e
next34:1dee8eb0b25e
author nkeynes
date Sun Dec 25 05:57:00 2005 +0000 (14 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
view annotate diff log raw
     1 /**
     2  * $Id: main.c,v 1.7 2005-12-25 05:56:55 nkeynes Exp $
     3  *
     4  * Main program, initializes dreamcast and gui, then passes control off to
     5  * the gtk main loop (currently). 
     6  *
     7  * FIXME: Remove explicit GTK/Gnome references from this file
     8  *
     9  * Copyright (c) 2005 Nathan Keynes.
    10  *
    11  * This program is free software; you can redistribute it and/or modify
    12  * it under the terms of the GNU General Public License as published by
    13  * the Free Software Foundation; either version 2 of the License, or
    14  * (at your option) any later version.
    15  *
    16  * This program is distributed in the hope that it will be useful,
    17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    19  * GNU General Public License for more details.
    20  */
    22 #ifdef HAVE_CONFIG_H
    23 #  include <config.h>
    24 #endif
    26 #include <gnome.h>
    27 #include "gui/gui.h"
    28 #include "dream.h"
    29 #include "dreamcast.h"
    31 int main (int argc, char *argv[])
    32 {
    33 #ifdef ENABLE_NLS
    34   bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
    35   textdomain (PACKAGE);
    36 #endif
    37   dreamcast_init();
    39   gnome_init ("dreamon", VERSION, argc, argv);
    40   dreamcast_register_module( &gtk_gui_module );
    41   video_open();
    43   emit( main_debug, EMIT_INFO, -1, "DreamOn! ready..." );
    45   gtk_main ();
    46   return 0;
    47 }
.