Search
lxdream.org :: lxdream/src/gtkui/gtkcb.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gtkui/gtkcb.c
changeset 543:361ec0a70cf2
prev537:d924be49e192
next561:533f6b478071
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/gtkcb.c Tue Nov 20 10:27:58 2007 +0000
1.2 +++ b/src/gtkui/gtkcb.c Thu Nov 22 11:10:15 2007 +0000
1.3 @@ -22,7 +22,7 @@
1.4 #include "gdrom/gdrom.h"
1.5 #include "gtkui/gtkui.h"
1.6 #include "pvr2/pvr2.h"
1.7 -
1.8 +#include "loader.h"
1.9
1.10
1.11 static void add_file_pattern( GtkFileChooser *chooser, char *pattern, char *patname )
1.12 @@ -101,6 +101,12 @@
1.13 dreamcast_run();
1.14 }
1.15
1.16 +void load_binary_action_callback( GtkAction *action, gpointer user_data)
1.17 +{
1.18 + const gchar *dir = lxdream_get_config_value(CONFIG_DEFAULT_PATH);
1.19 + open_file_dialog( "Open Binary...", file_load_magic, NULL, NULL, dir );
1.20 +}
1.21 +
1.22 void load_state_preview_callback( GtkFileChooser *chooser, gpointer user_data )
1.23 {
1.24 GtkWidget *preview = GTK_WIDGET(user_data);
.