summaryrefslogtreecommitdiff
path: root/src/resources/db/mapdb.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/mapdb.cpp
parent286e2b7edc988f93e347b6ccfd51da2a56d18d73 (diff)
downloadplus-463d5c603ea95f478dff4b12fbca3c7dd05cc8b9.tar.gz
plus-463d5c603ea95f478dff4b12fbca3c7dd05cc8b9.tar.bz2
plus-463d5c603ea95f478dff4b12fbca3c7dd05cc8b9.tar.xz
plus-463d5c603ea95f478dff4b12fbca3c7dd05cc8b9.zip
add ability to inlude config parts from subdirs for most dbs.
Diffstat (limited to 'src/resources/db/mapdb.cpp')
-rw-r--r--src/resources/db/mapdb.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/db/mapdb.cpp b/src/resources/db/mapdb.cpp
index 2ff5d1fee..4b5fb0f42 100644
--- a/src/resources/db/mapdb.cpp
+++ b/src/resources/db/mapdb.cpp
@@ -24,6 +24,8 @@
#include "configuration.h"
#include "logger.h"
+#include "resources/beingcommon.h"
+
#include "debug.h"
namespace
@@ -48,6 +50,7 @@ void MapDB::load()
loadRemap();
loadInfo(paths.getStringValue("mapsFile"));
loadInfo(paths.getStringValue("mapsPatchFile"));
+ loadXmlDir("mapsPatchDir", loadInfo);
mLoaded = true;
}