Search
lxdream.org :: lxdream/src/dreamcast.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/dreamcast.h
changeset 450:207461e79f21
prev431:248dd77a9e44
next461:63d4de8dcec6
author nkeynes
date Wed Oct 17 11:26:45 2007 +0000 (12 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/dreamcast.h Tue Oct 09 08:12:29 2007 +0000
1.2 +++ b/src/dreamcast.h Wed Oct 17 11:26:45 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: dreamcast.h,v 1.17 2007-10-09 08:12:29 nkeynes Exp $
1.6 + * $Id: dreamcast.h,v 1.18 2007-10-17 11:26:45 nkeynes Exp $
1.7 *
1.8 * Public interface for dreamcast.c -
1.9 * Central switchboard for the system. This pulls all the individual modules
1.10 @@ -38,25 +38,6 @@
1.11 #define XLAT_TEMP_CACHE_SIZE 2 MB
1.12 #define XLAT_OLD_CACHE_SIZE 8 MB
1.13
1.14 -#define CONFIG_TYPE_NONE 0
1.15 -#define CONFIG_TYPE_FILE 1
1.16 -#define CONFIG_TYPE_PATH 2
1.17 -#define CONFIG_TYPE_KEY 3
1.18 -
1.19 -#define DEFAULT_CONFIG_FILENAME "lxdream.rc"
1.20 -
1.21 -typedef struct dreamcast_config_entry {
1.22 - const gchar *key;
1.23 - const int type;
1.24 - const gchar *default_value;
1.25 - gchar *value;
1.26 -} *dreamcast_config_entry_t;
1.27 -
1.28 -typedef struct dreamcast_config_group {
1.29 - const gchar *key;
1.30 - struct dreamcast_config_entry *params;
1.31 -} *dreamcast_config_group_t;
1.32 -
1.33 void dreamcast_configure(void);
1.34 void dreamcast_configure_aica_only(void);
1.35 void dreamcast_init(void);
1.36 @@ -67,11 +48,6 @@
1.37 void dreamcast_shutdown(void);
1.38 gboolean dreamcast_is_running(void);
1.39
1.40 -gboolean dreamcast_load_config( const gchar *filename );
1.41 -gboolean dreamcast_save_config( const gchar *filename );
1.42 -gboolean dreamcast_load_config_stream( FILE *f );
1.43 -gboolean dreamcast_save_config_stream( FILE *f );
1.44 -
1.45 #define DREAMCAST_SAVE_MAGIC "%!-lxDream!Save\0"
1.46 #define DREAMCAST_SAVE_VERSION 0x00010000
1.47
1.48 @@ -81,16 +57,6 @@
1.49 #define SCENE_SAVE_MAGIC "%!-lxDream!Scene"
1.50 #define SCENE_SAVE_VERSION 0x00010000
1.51
1.52 -extern struct dreamcast_config_group dreamcast_config_root[];
1.53 -
1.54 -/* Global config values */
1.55 -const gchar *dreamcast_get_config_value( int key );
1.56 -#define CONFIG_BIOS_PATH 0
1.57 -#define CONFIG_FLASH_PATH 1
1.58 -#define CONFIG_DEFAULT_PATH 2
1.59 -#define CONFIG_SAVE_PATH 3
1.60 -#define CONFIG_BOOTSTRAP 4
1.61 -
1.62 #ifdef __cplusplus
1.63 }
1.64 #endif
.