summaryrefslogtreecommitdiffstats
path: root/src/io
diff options
context:
space:
mode:
Diffstat (limited to 'src/io')
-rw-r--r--src/io/resource.cpp10
-rw-r--r--src/io/resource.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/src/io/resource.cpp b/src/io/resource.cpp
index ae9097868..b4dca3233 100644
--- a/src/io/resource.cpp
+++ b/src/io/resource.cpp
@@ -53,6 +53,16 @@ Util::ptr_shared<char> get_path(Domain domain, Type type, char const *filename)
}
path = g_strdup(temp);
} break;
+ case CREATE: {
+ gchar const* temp = 0;
+ switch (type) {
+ case GRADIENTS: temp = CREATE_GRADIENTSDIR; break;
+ case PALETTES: temp = CREATE_PALETTESDIR; break;
+ case PATTERNS: temp = CREATE_PATTERNSDIR; break;
+ default: g_assert_not_reached();
+ }
+ path = g_strdup(temp);
+ } break;
case USER: {
char const *name=NULL;
switch (type) {
diff --git a/src/io/resource.h b/src/io/resource.h
index 948866f1e..0be8ab8e6 100644
--- a/src/io/resource.h
+++ b/src/io/resource.h
@@ -41,6 +41,7 @@ enum Type {
enum Domain {
SYSTEM,
+ CREATE,
USER
};