summaryrefslogtreecommitdiff
path: root/saedit/config.h
diff options
context:
space:
mode:
authorMicksha <ms-shaman@gmx.de>2019-01-04 21:37:34 +0100
committerMicksha <ms-shaman@gmx.de>2019-04-13 19:53:49 +0000
commit168ad9d6c730e93d76c801da607df84355187a39 (patch)
treeb771ad105e5a73733ede7559e22467f13a2880a8 /saedit/config.h
parent8c75e651f00048dda32db85b2bff34e131960864 (diff)
downloadevol-tools-168ad9d6c730e93d76c801da607df84355187a39.tar.gz
evol-tools-168ad9d6c730e93d76c801da607df84355187a39.tar.bz2
evol-tools-168ad9d6c730e93d76c801da607df84355187a39.tar.xz
evol-tools-168ad9d6c730e93d76c801da607df84355187a39.zip
update saedit to saedit2
Diffstat (limited to 'saedit/config.h')
-rw-r--r--saedit/config.h75
1 files changed, 28 insertions, 47 deletions
diff --git a/saedit/config.h b/saedit/config.h
index ca43eed..cae98bd 100644
--- a/saedit/config.h
+++ b/saedit/config.h
@@ -1,51 +1,32 @@
-/*=======================================*\
-| ____ ____ |
-| / \ /\ | |
-| \____ / \ |____ |
-| \ /____\ | |
-| \____/prite / \nimation |____ditor |
-| |
-| Copyleft Vasily_Makarov 2011 |
-| |
-\*=======================================*/
-
-#ifndef CONFIG_H
-#define CONFIG_H
+#ifndef _CONFIG_H_
+#define _CONFIG_H_
#include <glib.h>
-#include <glib/gstdio.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <string.h>
-#include <unistd.h>
-#include "common.h"
-#include "xml.h"
-
-#define OPTION_SPRITES_DEFAULT "graphics/sprites/"
-
-#define KEY_SHOW_GRID_DEFAULT TRUE
-#define KEY_CLIENTDATA_FOLDER_DEFAULT ""
-#define KEYS_CONFIG_DIR g_strjoin(SEPARATOR_SLASH, g_get_user_config_dir(), "saedit", NULL)
-#define KEYS_CONFIG_FILE g_strjoin(SEPARATOR_SLASH, KEYS_CONFIG_DIR, "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);
+
+void
+config_keys_load (void);
+
+void
+config_keys_save (void);
+
+gchar *
+config_keys_get_data_folder_path (void);
+
+void
+config_keys_set_data_folder_path (
+ const gchar *filename
+);
+
+gint
+config_keys_get_tile_size (void);
+
+void
+config_data_paths_load (void);
+
+gchar *
+config_data_paths_get_sprites_path (void);
+
+gchar *
+config_data_path_get_full_sprite_path (const gchar *rel_path);
#endif