diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-06 20:43:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-06 20:43:46 +0300 |
commit | 463d5c603ea95f478dff4b12fbca3c7dd05cc8b9 (patch) | |
tree | 00412a9d4a91de61ee62b3c8b9c03c928db5d809 /src/resources/db/npcdb.cpp | |
parent | 286e2b7edc988f93e347b6ccfd51da2a56d18d73 (diff) | |
download | ManaVerse-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/npcdb.cpp')
-rw-r--r-- | src/resources/db/npcdb.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/resources/db/npcdb.cpp b/src/resources/db/npcdb.cpp index c8b29c9da..412de1a1b 100644 --- a/src/resources/db/npcdb.cpp +++ b/src/resources/db/npcdb.cpp @@ -49,12 +49,7 @@ void NPCDB::load() loadXmlFile(paths.getStringValue("npcsFile")); loadXmlFile(paths.getStringValue("npcsPatchFile")); - - StringVect list; - BeingCommon::getIncludeFiles(paths.getStringValue( - "npcsPatchDir"), list); - FOR_EACH (StringVectCIter, it, list) - loadXmlFile(*it); + loadXmlDir("npcsPatchDir", loadXmlFile); mLoaded = true; } |