From b17621a3bc0aa72aaf11b1dc8c397610688533b0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 23 Jul 2014 23:50:01 +0300 Subject: Add include support in remap db. --- src/resources/db/mapdb.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/resources/db') diff --git a/src/resources/db/mapdb.cpp b/src/resources/db/mapdb.cpp index f0c9d988c..371085cb6 100644 --- a/src/resources/db/mapdb.cpp +++ b/src/resources/db/mapdb.cpp @@ -82,6 +82,13 @@ void MapDB::loadRemapXmlFile(const std::string &fileName) mMaps[name] = value; } + else if (xmlNameEqual(node, "include")) + { + const std::string name = XML::getProperty(node, "name", ""); + if (!name.empty()) + loadRemapXmlFile(name); + continue; + } } delete doc; -- cgit v1.2.3-70-g09d2