Search
lxdream.org :: lxdream/src/gui/callbacks.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/callbacks.c
changeset 26:ad258e3daaa5
prev23:1ec3acd0594d
next27:1ef09a52cd1e
author nkeynes
date Sat Dec 24 08:02:18 2005 +0000 (14 years ago)
permissions -rw-r--r--
last change More structure reorgs/fixes
file annotate diff log raw
1.1 --- a/src/gui/callbacks.c Fri Dec 23 11:44:55 2005 +0000
1.2 +++ b/src/gui/callbacks.c Sat Dec 24 08:02:18 2005 +0000
1.3 @@ -1,15 +1,34 @@
1.4 +/**
1.5 + * $Id: callbacks.c,v 1.8 2005-12-24 08:02:18 nkeynes Exp $
1.6 + *
1.7 + * All GTK callbacks go here (stubs are autogenerated by Glade)
1.8 + *
1.9 + * Copyright (c) 2005 Nathan Keynes.
1.10 + *
1.11 + * This program is free software; you can redistribute it and/or modify
1.12 + * it under the terms of the GNU General Public License as published by
1.13 + * the Free Software Foundation; either version 2 of the License, or
1.14 + * (at your option) any later version.
1.15 + *
1.16 + * This program is distributed in the hope that it will be useful,
1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.19 + * GNU General Public License for more details.
1.20 + */
1.21 +
1.22 #ifdef HAVE_CONFIG_H
1.23 # include <config.h>
1.24 #endif
1.25
1.26 #include <gnome.h>
1.27
1.28 -#include "callbacks.h"
1.29 -#include "interface.h"
1.30 -#include "gui.h"
1.31 +#include "gui/callbacks.h"
1.32 +#include "gui/interface.h"
1.33 +#include "gui/gui.h"
1.34 #include "sh4core.h"
1.35 #include "asic.h"
1.36 #include "dreamcast.h"
1.37 +#include "loader.h"
1.38
1.39 int selected_pc = -1;
1.40
1.41 @@ -25,7 +44,7 @@
1.42 on_open1_activate (GtkMenuItem *menuitem,
1.43 gpointer user_data)
1.44 {
1.45 - open_file_dialog( "Open...", open_file, NULL, NULL );
1.46 + open_file_dialog( "Open...", file_load_magic, NULL, NULL );
1.47 }
1.48
1.49
1.50 @@ -74,7 +93,7 @@
1.51 on_load_btn_clicked (GtkButton *button,
1.52 gpointer user_data)
1.53 {
1.54 - open_file_dialog( "Open...", load_bin_file, NULL, NULL );
1.55 + open_file_dialog( "Open...", file_load_magic, NULL, NULL );
1.56 }
1.57
1.58
1.59 @@ -82,8 +101,7 @@
1.60 on_reset_btn_clicked (GtkButton *button,
1.61 gpointer user_data)
1.62 {
1.63 - sh4_reset();
1.64 - mem_reset();
1.65 + dreamcast_reset();
1.66 update_gui();
1.67 }
1.68
1.69 @@ -92,9 +110,7 @@
1.70 on_stop_btn_clicked (GtkButton *button,
1.71 gpointer user_data)
1.72 {
1.73 - if( sh4_isrunning() ) {
1.74 - sh4_stop();
1.75 - }
1.76 + dreamcast_stop();
1.77 }
1.78
1.79
1.80 @@ -111,7 +127,6 @@
1.81 on_run_btn_clicked (GtkButton *button,
1.82 gpointer user_data)
1.83 {
1.84 - debug_info_t data = get_debug_info(GTK_WIDGET(button));
1.85 dreamcast_run();
1.86 }
1.87
1.88 @@ -120,7 +135,6 @@
1.89 on_runto_btn_clicked (GtkButton *button,
1.90 gpointer user_data)
1.91 {
1.92 - debug_info_t data = get_debug_info(GTK_WIDGET(button));
1.93 if( selected_pc == -1 )
1.94 WARN( "No address selected, so can't run to it", NULL );
1.95 else {
1.96 @@ -145,7 +159,7 @@
1.97 gpointer user_data)
1.98 {
1.99 gtk_main_quit();
1.100 - return FALSE;
1.101 + return FALSE;
1.102 }
1.103
1.104
.