Search
lxdream.org :: lxdream/src/main.c
lxdream 0.9.1
released Jun 29
Download Now
filename src/main.c
changeset 2:42349f6ea216
prev1:eea311cfd33e
next9:2784c7660165
author nkeynes
date Sat Aug 21 06:15:49 2004 +0000 (17 years ago)
permissions -rw-r--r--
last change Commit changes into cvs
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@1
    12
#include "interface.h"
nkeynes@1
    13
#include "gui.h"
nkeynes@1
    14
#include "sh4core.h"
nkeynes@2
    15
#include "mem.h"
nkeynes@1
    16
nkeynes@1
    17
nkeynes@1
    18
int
nkeynes@1
    19
main (int argc, char *argv[])
nkeynes@1
    20
{
nkeynes@1
    21
  GtkWidget *debug_win;
nkeynes@1
    22
nkeynes@1
    23
#ifdef ENABLE_NLS
nkeynes@1
    24
  bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
nkeynes@1
    25
  textdomain (PACKAGE);
nkeynes@1
    26
#endif
nkeynes@1
    27
  gnome_init ("dreamon", VERSION, argc, argv);
nkeynes@2
    28
  init_gui();
nkeynes@1
    29
  debug_win = create_debug_win ();
nkeynes@1
    30
  init_debug_win(debug_win);
nkeynes@1
    31
  video_open();
nkeynes@2
    32
  dreamcast_init();
nkeynes@1
    33
  init_mmr_win(); /* Note: must be done after sh4_init */
nkeynes@1
    34
  sh4_reset();
nkeynes@2
    35
  update_gui();
nkeynes@1
    36
  gtk_widget_show (debug_win);
nkeynes@1
    37
  set_disassembly_region( 0xA0000000 );
nkeynes@2
    38
  // mem_new_watch( 0x0C204818, 0x0C204830, WATCH_WRITE );
nkeynes@2
    39
  
nkeynes@1
    40
  emit( EMIT_INFO, -1, "DreamOn! ready..." );
nkeynes@1
    41
nkeynes@1
    42
  gtk_main ();
nkeynes@1
    43
  return 0;
nkeynes@1
    44
}
nkeynes@1
    45
.