Search
lxdream.org :: lxdream/src/main.c
lxdream 0.9.1
released Jun 29
Download Now
filename src/main.c
changeset 1:eea311cfd33e
next2:42349f6ea216
author nkeynes
date Sat Mar 13 00:03:32 2004 +0000 (17 years ago)
permissions -rw-r--r--
last change This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.
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@1
    15
nkeynes@1
    16
nkeynes@1
    17
int
nkeynes@1
    18
main (int argc, char *argv[])
nkeynes@1
    19
{
nkeynes@1
    20
  GtkWidget *debug_win;
nkeynes@1
    21
nkeynes@1
    22
#ifdef ENABLE_NLS
nkeynes@1
    23
  bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
nkeynes@1
    24
  textdomain (PACKAGE);
nkeynes@1
    25
#endif
nkeynes@1
    26
  gnome_init ("dreamon", VERSION, argc, argv);
nkeynes@1
    27
nkeynes@1
    28
  debug_win = create_debug_win ();
nkeynes@1
    29
  init_debug_win(debug_win);
nkeynes@1
    30
  video_open();
nkeynes@1
    31
  machine_init();
nkeynes@1
    32
  init_mmr_win(); /* Note: must be done after sh4_init */
nkeynes@1
    33
  sh4_reset();
nkeynes@1
    34
  update_registers();
nkeynes@1
    35
  gtk_widget_show (debug_win);
nkeynes@1
    36
  set_disassembly_region( 0xA0000000 );
nkeynes@1
    37
  emit( EMIT_INFO, -1, "DreamOn! ready..." );
nkeynes@1
    38
nkeynes@1
    39
  gtk_main ();
nkeynes@1
    40
  return 0;
nkeynes@1
    41
}
nkeynes@1
    42
.