From 463d5c603ea95f478dff4b12fbca3c7dd05cc8b9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 6 Jan 2014 20:43:46 +0300 Subject: add ability to inlude config parts from subdirs for most dbs. --- src/resources/db/sounddb.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/resources/db/sounddb.cpp') diff --git a/src/resources/db/sounddb.cpp b/src/resources/db/sounddb.cpp index a179eb2ff..ad98b2705 100644 --- a/src/resources/db/sounddb.cpp +++ b/src/resources/db/sounddb.cpp @@ -26,6 +26,8 @@ #include "utils/xml.h" +#include "resources/beingcommon.h" + #include "debug.h" namespace @@ -39,6 +41,7 @@ void SoundDB::load() unload(); loadXmlFile(paths.getStringValue("soundsFile")); loadXmlFile(paths.getStringValue("soundsPatchFile")); + loadXmlDir("soundsPatchDir", loadXmlFile); } void SoundDB::loadXmlFile(const std::string &fileName) -- cgit v1.2.3-70-g09d2