Search
lxdream.org :: lxdream/src/main.c
lxdream 0.9.1
released Jun 29
Download Now
filename src/main.c
changeset 27:1ef09a52cd1e
prev25:fa2d21d57942
next30:89b30313d757
author nkeynes
date Sun Dec 25 01:28:39 2005 +0000 (15 years ago)
permissions -rw-r--r--
last change Refactor all the GUI bits out of the main directory (except for a couple
lingering temporarily in loader.c
Fix a few timeslice issues
file annotate diff log raw
nkeynes@1
     1
/*
nkeynes@1
     2
 * Initial main.c file generated by Glade. Edit as required.
nkeynes@1
     3
 * Glade will not overwrite this file.
nkeynes@1
     4
 */
nkeynes@1
     5
nkeynes@1
     6
#ifdef HAVE_CONFIG_H
nkeynes@1
     7
#  include <config.h>
nkeynes@1
     8
#endif
nkeynes@1
     9
nkeynes@1
    10
#include <gnome.h>
nkeynes@1
    11
nkeynes@25
    12
#include "gui/gui.h"
nkeynes@27
    13
#include "dream.h"
nkeynes@27
    14
#include "dreamcast.h"
nkeynes@11
    15
nkeynes@1
    16
int
nkeynes@1
    17
main (int argc, char *argv[])
nkeynes@1
    18
{
nkeynes@1
    19
#ifdef ENABLE_NLS
nkeynes@1
    20
  bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
nkeynes@1
    21
  textdomain (PACKAGE);
nkeynes@1
    22
#endif
nkeynes@27
    23
  dreamcast_init();
nkeynes@1
    24
  gnome_init ("dreamon", VERSION, argc, argv);
nkeynes@27
    25
  dreamcast_register_module( &gtk_gui_module );
nkeynes@1
    26
  video_open();
nkeynes@2
    27
  // mem_new_watch( 0x0C204818, 0x0C204830, WATCH_WRITE );
nkeynes@2
    28
  
nkeynes@9
    29
  emit( main_debug, EMIT_INFO, -1, "DreamOn! ready..." );
nkeynes@1
    30
nkeynes@1
    31
  gtk_main ();
nkeynes@1
    32
  return 0;
nkeynes@1
    33
}
nkeynes@1
    34
.