summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-14 15:51:36 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-14 15:51:36 +0300
commit9a0e17c9934233995badbe6c4b3c3a3f7c0d16b8 (patch)
treec90a478aa99ae0282b5c4417ae16c339d6ab9983 /src/resources
parente61466ca3f2af0b3c7354d42c7f10d40ecea9d08 (diff)
downloadmanaplus-9a0e17c9934233995badbe6c4b3c3a3f7c0d16b8.tar.gz
manaplus-9a0e17c9934233995badbe6c4b3c3a3f7c0d16b8.tar.bz2
manaplus-9a0e17c9934233995badbe6c4b3c3a3f7c0d16b8.tar.xz
manaplus-9a0e17c9934233995badbe6c4b3c3a3f7c0d16b8.zip
Add option into paths.xml for default GIMP palette file name.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/db/palettedb.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/resources/db/palettedb.cpp b/src/resources/db/palettedb.cpp
index a3caf62dc..3c7abe6af 100644
--- a/src/resources/db/palettedb.cpp
+++ b/src/resources/db/palettedb.cpp
@@ -20,6 +20,7 @@
#include "resources/db/palettedb.h"
+#include "configuration.h"
#include "logger.h"
#include "utils/files.h"
@@ -48,7 +49,9 @@ void PaletteDB::loadPalette()
{
mLoaded = true;
StringVect lines;
- Files::loadTextFile("palette.gpl", lines);
+ Files::loadTextFile(paths.getStringValue(
+ "defaultPaletteFile"),
+ lines);
StringVectCIter it = lines.begin();
if (it == lines.end())
{