summaryrefslogtreecommitdiff
path: root/src/resources/db/colordb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/db/colordb.cpp')
-rw-r--r--src/resources/db/colordb.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/resources/db/colordb.cpp b/src/resources/db/colordb.cpp
index 276b7e77a..06dff0d3a 100644
--- a/src/resources/db/colordb.cpp
+++ b/src/resources/db/colordb.cpp
@@ -26,6 +26,8 @@
#include "utils/xml.h"
+#include "resources/beingcommon.h"
+
#include "debug.h"
namespace
@@ -49,12 +51,19 @@ void ColorDB::load()
colors = it->second;
loadHair(paths.getStringValue("hairColorFile"), colors);
loadHair(paths.getStringValue("hairColorPatchFile"), colors);
+ StringVect list;
+ BeingCommon::getIncludeFiles(paths.getStringValue(
+ "hairColorPatchDir"), list);
+ FOR_EACH (StringVectCIter, it, list)
+ loadHair(*it, colors);
+
mColorLists["hair"] = colors;
if (serverVersion >= 1)
{
loadColorLists(paths.getStringValue("itemColorsFile"));
loadColorLists(paths.getStringValue("itemColorsPatchFile"));
+ loadXmlDir("itemColorsPatchDir", loadColorLists);
}
it = mColorLists.find("hair");