From 8c0d021d271e713208a40968a7e758a24a034fe8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 6 Jan 2014 23:49:57 +0300 Subject: add ability to include config parts from subdirs for other dbs. --- src/units.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/units.cpp') diff --git a/src/units.cpp b/src/units.cpp index 0c31e1553..7260acf68 100644 --- a/src/units.cpp +++ b/src/units.cpp @@ -28,6 +28,8 @@ #include "utils/stringutils.h" #include "utils/xml.h" +#include "resources/beingcommon.h" + #include #include @@ -104,6 +106,7 @@ void Units::loadUnits() loadXmlFile(paths.getStringValue("unitsFile")); loadXmlFile(paths.getStringValue("unitsPatchFile")); + loadXmlDir("unitsPatchDir", loadXmlFile); } void Units::loadXmlFile(const std::string &fileName) -- cgit v1.2.3-70-g09d2