Search
lxdream.org :: lxdream/src/gtkui/debug_win.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gtkui/debug_win.c
changeset 543:361ec0a70cf2
prev537:d924be49e192
next561:533f6b478071
next586:2a3ba82cf243
author nkeynes
date Thu Nov 22 11:10:15 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Re-add "Load Binary" menu item (misplaced in GUI rewrite)
Prevent running with no code loaded
file annotate diff log raw
1.1 --- a/src/gtkui/debug_win.c Tue Nov 20 10:27:58 2007 +0000
1.2 +++ b/src/gtkui/debug_win.c Thu Nov 22 11:10:15 2007 +0000
1.3 @@ -396,7 +396,7 @@
1.4 {
1.5 if( data != NULL ) {
1.6 gtk_gui_enable_action( "SingleStep", !isRunning );
1.7 - gtk_gui_enable_action( "RunTo", !isRunning );
1.8 + gtk_gui_enable_action( "RunTo", !isRunning && dreamcast_can_run() );
1.9 }
1.10 }
1.11
1.12 @@ -437,7 +437,7 @@
1.13 GdkEvent *event, gpointer user_data)
1.14 {
1.15 gtk_gui_enable_action( "SetBreakpoint", TRUE );
1.16 - gtk_gui_enable_action( "RunTo", TRUE );
1.17 + gtk_gui_enable_action( "RunTo", dreamcast_can_run() );
1.18 }
1.19
1.20 void on_disasm_list_unselect_row (GtkCList *clist, gint row, gint column,
.