diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-06 14:47:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-06 14:47:39 +0300 |
commit | b7ee14cadb1e5675f7e36565aec1fe39e55ccc34 (patch) | |
tree | d92328178a64cd15891802ced4a0db5a0a751e11 /src/resources/db/monsterdb.cpp | |
parent | 3cb15a8f777bd9907d8dc4ba57774c762ec1f67f (diff) | |
download | manaverse-b7ee14cadb1e5675f7e36565aec1fe39e55ccc34.tar.gz manaverse-b7ee14cadb1e5675f7e36565aec1fe39e55ccc34.tar.bz2 manaverse-b7ee14cadb1e5675f7e36565aec1fe39e55ccc34.tar.xz manaverse-b7ee14cadb1e5675f7e36565aec1fe39e55ccc34.zip |
add ability to inlude config parts from subdirs for items, monsters, npcs.
Diffstat (limited to 'src/resources/db/monsterdb.cpp')
-rw-r--r-- | src/resources/db/monsterdb.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/db/monsterdb.cpp b/src/resources/db/monsterdb.cpp index f04743507..d5e36f443 100644 --- a/src/resources/db/monsterdb.cpp +++ b/src/resources/db/monsterdb.cpp @@ -50,6 +50,13 @@ void MonsterDB::load() logger->log1("Initializing monster database..."); loadXmlFile(paths.getStringValue("monstersFile")); loadXmlFile(paths.getStringValue("monstersPatchFile")); + + StringVect list; + BeingCommon::getIncludeFiles(paths.getStringValue( + "monstersPatchDir"), list); + FOR_EACH (StringVectCIter, it, list) + loadXmlFile(*it); + mLoaded = true; } |