diff options
author | Vasily_Makarov <danilka.pro@gmail.com> | 2011-06-15 18:24:14 +0400 |
---|---|---|
committer | Vasily_Makarov <danilka.pro@gmail.com> | 2011-06-15 18:24:14 +0400 |
commit | 6c0a4a2bc3809ee49d55fdff7c55c25d3e6ad4a5 (patch) | |
tree | 8a43922891e4f5eb7909d8d2b80f64235760e18d /saedit/config.h | |
parent | 34dbe2ca8daae2595ee6ff37632a15e68fcc7fc2 (diff) | |
download | evol-tools-6c0a4a2bc3809ee49d55fdff7c55c25d3e6ad4a5.tar.gz evol-tools-6c0a4a2bc3809ee49d55fdff7c55c25d3e6ad4a5.tar.bz2 evol-tools-6c0a4a2bc3809ee49d55fdff7c55c25d3e6ad4a5.tar.xz evol-tools-6c0a4a2bc3809ee49d55fdff7c55c25d3e6ad4a5.zip |
saedit: Review code and add some features
Diffstat (limited to 'saedit/config.h')
-rw-r--r-- | saedit/config.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/saedit/config.h b/saedit/config.h new file mode 100644 index 0000000..c8904d5 --- /dev/null +++ b/saedit/config.h @@ -0,0 +1,39 @@ +/*=======================================*\ +| ____ ____ | +| / \ /\ | | +| \____ / \ |____ | +| \ /____\ | | +| \____/prite / \nimation |____ditor | +| | +| Copyleft Vasily_Makarov 2011 | +| | +\*=======================================*/ + +#ifndef CONFIG_H +#define CONFIG_H + +#define OPTION_SPRITES_DEFAULT "graphics/sprites/" + +#define KEY_SHOW_GRID_DEFAULT TRUE +#define KEY_CLIENTDATA_FOLDER_DEFAULT "" +#define KEYS_CONFIG_FILE g_strjoin(SEPARATOR_SLASH, g_get_user_config_dir(), "saedit/config.ini", NULL) + +typedef struct { + gchar *sprites; +} Options; + +Options *config_options_new(); +void config_options_load_from_file(Options *options, + gchar *file, + gchar *data_folder); + +typedef struct { + gchar *clientdata_folder; + gboolean show_grid; +} Keys; + +Keys *config_keys_new(); +void config_keys_load(Keys *keys); +void config_keys_save(Keys *keys); + +#endif |