Search
lxdream.org :: lxdream/src/gui/debugcb.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/debugcb.c
changeset 450:207461e79f21
prev435:7a5d71e8560b
next455:3080881d00d4
author nkeynes
date Wed Oct 17 11:26:45 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Split config management out to config.[ch]
Manage config filename
Check home dir + sysconfdir for conf file
Initial work on a path settings dialog
file annotate diff log raw
1.1 --- a/src/gui/debugcb.c Wed Oct 10 11:02:04 2007 +0000
1.2 +++ b/src/gui/debugcb.c Wed Oct 17 11:26:45 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: debugcb.c,v 1.1 2007-10-10 11:02:04 nkeynes Exp $
1.6 + * $Id: debugcb.c,v 1.2 2007-10-17 11:26:45 nkeynes Exp $
1.7 *
1.8 * All GTK callbacks go here (stubs are autogenerated by Glade)
1.9 *
1.10 @@ -16,12 +16,9 @@
1.11 * GNU General Public License for more details.
1.12 */
1.13
1.14 -#ifdef HAVE_CONFIG_H
1.15 -# include <config.h>
1.16 -#endif
1.17 -
1.18 #include <gnome.h>
1.19
1.20 +#include "config.h"
1.21 #include "gui/debugcb.h"
1.22 #include "gui/debugif.h"
1.23 #include "gui/gtkui.h"
1.24 @@ -49,7 +46,7 @@
1.25 on_open1_activate (GtkMenuItem *menuitem,
1.26 gpointer user_data)
1.27 {
1.28 - const gchar *dir = dreamcast_get_config_value(CONFIG_DEFAULT_PATH);
1.29 + const gchar *dir = lxdream_get_config_value(CONFIG_DEFAULT_PATH);
1.30 open_file_dialog( "Open...", file_load_magic, NULL, NULL, dir );
1.31 }
1.32
1.33 @@ -73,7 +70,7 @@
1.34 on_save_next_scene_activate( GtkMenuItem *menuitem,
1.35 gpointer user_data)
1.36 {
1.37 - const gchar *dir = dreamcast_get_config_value(CONFIG_SAVE_PATH);
1.38 + const gchar *dir = lxdream_get_config_value(CONFIG_SAVE_PATH);
1.39 save_file_dialog( "Save next scene...", pvr2_save_next_scene, "*.dsc", "lxdream scene file (*.dsc)", dir );
1.40 }
1.41
1.42 @@ -106,7 +103,7 @@
1.43 on_load_btn_clicked (GtkButton *button,
1.44 gpointer user_data)
1.45 {
1.46 - const gchar *dir = dreamcast_get_config_value(CONFIG_DEFAULT_PATH);
1.47 + const gchar *dir = lxdream_get_config_value(CONFIG_DEFAULT_PATH);
1.48 open_file_dialog( "Open...", gdrom_mount_image, NULL, NULL, dir );
1.49 }
1.50
1.51 @@ -344,7 +341,7 @@
1.52 on_loadstate_button_clicked (GtkToolButton *toolbutton,
1.53 gpointer user_data)
1.54 {
1.55 - const gchar *dir = dreamcast_get_config_value(CONFIG_SAVE_PATH);
1.56 + const gchar *dir = lxdream_get_config_value(CONFIG_SAVE_PATH);
1.57 open_file_dialog( "Load state...", dreamcast_load_state, "*.dst", "lxDream Save State (*.dst)", dir );
1.58 }
1.59
1.60 @@ -353,7 +350,7 @@
1.61 on_savestate_button_clicked (GtkToolButton *toolbutton,
1.62 gpointer user_data)
1.63 {
1.64 - const gchar *dir = dreamcast_get_config_value(CONFIG_SAVE_PATH);
1.65 + const gchar *dir = lxdream_get_config_value(CONFIG_SAVE_PATH);
1.66 save_file_dialog( "Save state...", dreamcast_save_state, "*.dst", "lxDream Save State (*.dst)", dir );
1.67 }
1.68
.