Search
lxdream.org :: lxdream/src/gui/callbacks.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/callbacks.c
changeset 167:71c0cc416a64
prev139:128f569e004e
next180:e6dcf9b65658
author nkeynes
date Mon Jun 19 11:00:42 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change Add config value retrieval for pathnames
Implement default path for disc + save state loaders
Dump disc ID when mounting a CD
file annotate diff log raw
1.1 --- a/src/gui/callbacks.c Sun Apr 30 01:51:29 2006 +0000
1.2 +++ b/src/gui/callbacks.c Mon Jun 19 11:00:42 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: callbacks.c,v 1.14 2006-04-30 01:51:29 nkeynes Exp $
1.6 + * $Id: callbacks.c,v 1.15 2006-06-19 11:00:42 nkeynes Exp $
1.7 *
1.8 * All GTK callbacks go here (stubs are autogenerated by Glade)
1.9 *
1.10 @@ -45,7 +45,8 @@
1.11 on_open1_activate (GtkMenuItem *menuitem,
1.12 gpointer user_data)
1.13 {
1.14 - open_file_dialog( "Open...", file_load_magic, NULL, NULL );
1.15 + const gchar *dir = dreamcast_get_config_value(CONFIG_DEFAULT_PATH);
1.16 + open_file_dialog( "Open...", file_load_magic, NULL, NULL, dir );
1.17 }
1.18
1.19
1.20 @@ -94,7 +95,8 @@
1.21 on_load_btn_clicked (GtkButton *button,
1.22 gpointer user_data)
1.23 {
1.24 - open_file_dialog( "Open...", gdrom_mount_image, NULL, NULL );
1.25 + const gchar *dir = dreamcast_get_config_value(CONFIG_DEFAULT_PATH);
1.26 + open_file_dialog( "Open...", gdrom_mount_image, NULL, NULL, dir );
1.27 }
1.28
1.29
1.30 @@ -320,7 +322,8 @@
1.31 on_loadstate_button_clicked (GtkToolButton *toolbutton,
1.32 gpointer user_data)
1.33 {
1.34 - open_file_dialog( "Load state...", dreamcast_load_state, "*.dst", "DreamOn Save State (*.dst)" );
1.35 + const gchar *dir = dreamcast_get_config_value(CONFIG_SAVE_PATH);
1.36 + open_file_dialog( "Load state...", dreamcast_load_state, "*.dst", "DreamOn Save State (*.dst)", dir );
1.37 }
1.38
1.39
1.40 @@ -328,6 +331,7 @@
1.41 on_savestate_button_clicked (GtkToolButton *toolbutton,
1.42 gpointer user_data)
1.43 {
1.44 - save_file_dialog( "Save state...", dreamcast_save_state, "*.dst", "DreamOn Save State (*.dst)" );
1.45 + const gchar *dir = dreamcast_get_config_value(CONFIG_SAVE_PATH);
1.46 + save_file_dialog( "Save state...", dreamcast_save_state, "*.dst", "DreamOn Save State (*.dst)", dir );
1.47 }
1.48
.