Search
lxdream.org :: lxdream/src/main.c
lxdream 0.9.1
released Jun 29
Download Now
filename src/main.c
changeset 25:fa2d21d57942
prev11:0a82ef380c45
next27:1ef09a52cd1e
author nkeynes
date Sat Dec 24 03:33:08 2005 +0000 (15 years ago)
permissions -rw-r--r--
last change Fixup include paths + typo for structure changes
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@1
    13
#include "sh4core.h"
nkeynes@9
    14
#include "sh4dasm.h"
nkeynes@11
    15
#include "aica/armdasm.h"
nkeynes@2
    16
#include "mem.h"
nkeynes@1
    17
nkeynes@9
    18
debug_info_t main_debug;
nkeynes@1
    19
nkeynes@11
    20
const cpu_desc_t cpu_descs[4] = { &sh4_cpu_desc, &arm_cpu_desc, &armt_cpu_desc, NULL };
nkeynes@11
    21
nkeynes@1
    22
int
nkeynes@1
    23
main (int argc, char *argv[])
nkeynes@1
    24
{
nkeynes@1
    25
  GtkWidget *debug_win;
nkeynes@1
    26
nkeynes@1
    27
#ifdef ENABLE_NLS
nkeynes@1
    28
  bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
nkeynes@1
    29
  textdomain (PACKAGE);
nkeynes@1
    30
#endif
nkeynes@1
    31
  gnome_init ("dreamon", VERSION, argc, argv);
nkeynes@2
    32
  init_gui();
nkeynes@1
    33
  debug_win = create_debug_win ();
nkeynes@11
    34
  main_debug = init_debug_win(debug_win, cpu_descs);
nkeynes@1
    35
  video_open();
nkeynes@2
    36
  dreamcast_init();
nkeynes@1
    37
  init_mmr_win(); /* Note: must be done after sh4_init */
nkeynes@1
    38
  sh4_reset();
nkeynes@2
    39
  update_gui();
nkeynes@1
    40
  gtk_widget_show (debug_win);
nkeynes@9
    41
  set_disassembly_region( main_debug, 0xA0000000 );
nkeynes@2
    42
  // mem_new_watch( 0x0C204818, 0x0C204830, WATCH_WRITE );
nkeynes@2
    43
  
nkeynes@9
    44
  emit( main_debug, EMIT_INFO, -1, "DreamOn! ready..." );
nkeynes@1
    45
nkeynes@1
    46
  gtk_main ();
nkeynes@1
    47
  return 0;
nkeynes@1
    48
}
nkeynes@1
    49
.