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.5 + * $Id: callbacks.c,v 1.8 2005-12-24 08:02:18 nkeynes Exp $
1.7 + * All GTK callbacks go here (stubs are autogenerated by Glade)
1.9 + * Copyright (c) 2005 Nathan Keynes.
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.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.22 #ifdef HAVE_CONFIG_H
1.23 # include <config.h>
1.28 -#include "callbacks.h"
1.29 -#include "interface.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.36 #include "dreamcast.h"
1.37 +#include "loader.h"
1.39 int selected_pc = -1;
1.42 on_open1_activate (GtkMenuItem *menuitem,
1.45 - open_file_dialog( "Open...", open_file, NULL, NULL );
1.46 + open_file_dialog( "Open...", file_load_magic, NULL, NULL );
1.51 on_load_btn_clicked (GtkButton *button,
1.54 - open_file_dialog( "Open...", load_bin_file, NULL, NULL );
1.55 + open_file_dialog( "Open...", file_load_magic, NULL, NULL );
1.60 on_reset_btn_clicked (GtkButton *button,
1.65 + dreamcast_reset();
1.70 on_stop_btn_clicked (GtkButton *button,
1.73 - if( sh4_isrunning() ) {
1.81 on_run_btn_clicked (GtkButton *button,
1.84 - debug_info_t data = get_debug_info(GTK_WIDGET(button));
1.89 on_runto_btn_clicked (GtkButton *button,
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 );