summaryrefslogtreecommitdiff
path: root/src/resources/db/avatardb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-06 20:43:46 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-06 20:43:46 +0300
commit463d5c603ea95f478dff4b12fbca3c7dd05cc8b9 (patch)
tree00412a9d4a91de61ee62b3c8b9c03c928db5d809 /src/resources/db/avatardb.cpp
parent286e2b7edc988f93e347b6ccfd51da2a56d18d73 (diff)
downloadManaVerse-463d5c603ea95f478dff4b12fbca3c7dd05cc8b9.tar.gz
ManaVerse-463d5c603ea95f478dff4b12fbca3c7dd05cc8b9.tar.bz2
ManaVerse-463d5c603ea95f478dff4b12fbca3c7dd05cc8b9.tar.xz
ManaVerse-463d5c603ea95f478dff4b12fbca3c7dd05cc8b9.zip
add ability to inlude config parts from subdirs for most dbs.
Diffstat (limited to 'src/resources/db/avatardb.cpp')
-rw-r--r--src/resources/db/avatardb.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/db/avatardb.cpp b/src/resources/db/avatardb.cpp
index 92f590cf7..a97059c2c 100644
--- a/src/resources/db/avatardb.cpp
+++ b/src/resources/db/avatardb.cpp
@@ -24,6 +24,7 @@
#include "logger.h"
+#include "resources/beingcommon.h"
#include "resources/beinginfo.h"
#include "utils/dtor.h"
@@ -45,6 +46,7 @@ void AvatarDB::load()
unload();
loadXmlFile(paths.getStringValue("avatarsFile"));
loadXmlFile(paths.getStringValue("avatarsPatchFile"));
+ loadXmlDir("avatarsPatchDir", loadXmlFile);
}
void AvatarDB::loadXmlFile(const std::string &fileName)