filename | src/main.c |
changeset | 35:21a4be098304 |
prev | 34:1dee8eb0b25e |
next | 68:0cf3ead96627 |
author | nkeynes |
date | Mon Dec 26 03:54:55 2005 +0000 (17 years ago) |
permissions | -rw-r--r-- |
last change | Remove modules.h - move definitions into dream.h Add source string to output list (taken from module name) ARM Work in progress |
view | annotate | diff | log | raw |
1 /**
2 * $Id: main.c,v 1.9 2005-12-26 03:54:52 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 video_open();
41 dreamcast_register_module( >k_gui_module );
43 INFO( "DreamOn! ready..." );
45 gtk_main ();
46 return 0;
47 }
.