summaryrefslogtreecommitdiff
path: root/src/resources/db/palettedb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-14 15:59:03 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-14 15:59:03 +0300
commitca12866fa8e6f95d9efadab26952a58540eec939 (patch)
tree993f9a56750917b6167b1c1f45eb701b9e7b92c0 /src/resources/db/palettedb.cpp
parent9a0e17c9934233995badbe6c4b3c3a3f7c0d16b8 (diff)
downloadmanaverse-ca12866fa8e6f95d9efadab26952a58540eec939.tar.gz
manaverse-ca12866fa8e6f95d9efadab26952a58540eec939.tar.bz2
manaverse-ca12866fa8e6f95d9efadab26952a58540eec939.tar.xz
manaverse-ca12866fa8e6f95d9efadab26952a58540eec939.zip
Add palettesDir option in paths.xml for set directory for GIMP palettes.
Diffstat (limited to 'src/resources/db/palettedb.cpp')
-rw-r--r--src/resources/db/palettedb.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/db/palettedb.cpp b/src/resources/db/palettedb.cpp
index 3c7abe6af..3ad2b13fa 100644
--- a/src/resources/db/palettedb.cpp
+++ b/src/resources/db/palettedb.cpp
@@ -49,8 +49,8 @@ void PaletteDB::loadPalette()
{
mLoaded = true;
StringVect lines;
- Files::loadTextFile(paths.getStringValue(
- "defaultPaletteFile"),
+ Files::loadTextFile(paths.getStringValue("palettesDir") +
+ paths.getStringValue("defaultPaletteFile"),
lines);
StringVectCIter it = lines.begin();
if (it == lines.end())