1.1 --- a/src/dreamcast.h Sun Dec 25 05:57:00 2005 +0000
1.2 +++ b/src/dreamcast.h Sat May 20 02:40:51 2006 +0000
1.5 - * $Id: dreamcast.h,v 1.8 2005-12-25 05:56:55 nkeynes Exp $
1.6 + * $Id: dreamcast.h,v 1.9 2006-05-15 08:28:48 nkeynes Exp $
1.8 * Public interface for dreamcast.c -
1.9 * Central switchboard for the system. This pulls all the individual modules
1.13 #define DEFAULT_TIMESLICE_LENGTH 1000000 /* nanoseconds */
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.19 +#define DEFAULT_CONFIG_FILENAME "dream.conf"
1.21 +typedef struct dreamcast_config_entry {
1.24 + const gchar *default_value;
1.26 +} *dreamcast_config_entry_t;
1.28 +typedef struct dreamcast_config_group {
1.30 + struct dreamcast_config_entry *params;
1.31 +} *dreamcast_config_group_t;
1.34 void dreamcast_init(void);
1.35 void dreamcast_reset(void);
1.36 void dreamcast_run(void);
1.37 void dreamcast_stop(void);
1.39 -void dreamcast_load_config( const gchar *filename );
1.40 -void dreamcast_save_config( const gchar *filename );
1.41 +gboolean dreamcast_load_config( const gchar *filename );
1.42 +gboolean dreamcast_save_config( const gchar *filename );
1.44 int dreamcast_save_state( const gchar *filename );
1.45 int dreamcast_load_state( const gchar *filename );
1.47 +extern struct dreamcast_config_group dreamcast_config_root[];