summaryrefslogtreecommitdiffstats
path: root/src/io/resource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/io/resource.cpp')
-rw-r--r--src/io/resource.cpp10
1 files changed, 10 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) {