Search
lxdream.org :: lxdream/src/config.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/config.h
changeset 1038:f220d18c0615
prev1036:af7b0c5905dd
next1041:5fcc39857c5c
author nkeynes
date Thu Jun 25 01:15:25 2009 +0000 (13 years ago)
permissions -rw-r--r--
last change Move configuration to .lxdream/lxdreamrc on *nix, Library/Application Support/Lxdream on OS X
Create standard directories on first run
Add current quick state to config file
Refactor quick-state handling into dreamcast.c, and use the save directory
file annotate diff log raw
1.1 --- a/src/config.h Wed Jun 24 06:06:40 2009 +0000
1.2 +++ b/src/config.h Thu Jun 25 01:15:25 2009 +0000
1.3 @@ -32,6 +32,7 @@
1.4 #define CONFIG_TYPE_PATH 2
1.5 #define CONFIG_TYPE_KEY 3
1.6 #define CONFIG_TYPE_FILELIST 4
1.7 +#define CONFIG_TYPE_INTEGER 5
1.8
1.9 #define DEFAULT_CONFIG_FILENAME "lxdreamrc"
1.10
1.11 @@ -57,7 +58,8 @@
1.12 #define CONFIG_GDROM 6
1.13 #define CONFIG_RECENT 7
1.14 #define CONFIG_VMU 8
1.15 -#define CONFIG_KEY_MAX CONFIG_VMU
1.16 +#define CONFIG_QUICK_STATE 9
1.17 +#define CONFIG_KEY_MAX CONFIG_QUICK_STATE
1.18
1.19 extern struct lxdream_config_group lxdream_config_root[];
1.20
1.21 @@ -124,6 +126,11 @@
1.22 gboolean lxdream_save_config( );
1.23
1.24 /**
1.25 + * Make the user configuration directories if they don't already exist.
1.26 + */
1.27 +void lxdream_make_config_dir( );
1.28 +
1.29 +/**
1.30 * Escape a pathname if needed to prevent shell substitution.
1.31 * @return a newly allocated string (or NULL if the input is NULL)
1.32 */
.