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