summaryrefslogtreecommitdiff
path: root/src/resources/db/moddb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-03 22:43:54 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-04 00:57:58 +0300
commitde73e67e830c15e6b623ba03eda88f9faacac40c (patch)
tree79422e9c944b751cd0c0b8ad6fd37e32ddaaa130 /src/resources/db/moddb.cpp
parent653f89fa3b236103670796af4b76a23e8ae84248 (diff)
downloadplus-de73e67e830c15e6b623ba03eda88f9faacac40c.tar.gz
plus-de73e67e830c15e6b623ba03eda88f9faacac40c.tar.bz2
plus-de73e67e830c15e6b623ba03eda88f9faacac40c.tar.xz
plus-de73e67e830c15e6b623ba03eda88f9faacac40c.zip
Add missing load / unload databases logging.
Diffstat (limited to 'src/resources/db/moddb.cpp')
-rw-r--r--src/resources/db/moddb.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/db/moddb.cpp b/src/resources/db/moddb.cpp
index 9f69c9891..7db96f4bd 100644
--- a/src/resources/db/moddb.cpp
+++ b/src/resources/db/moddb.cpp
@@ -42,6 +42,7 @@ void ModDB::load()
{
if (mLoaded)
unload();
+ logger->log1("Initializing mod database...");
loadXmlFile(paths.getStringValue("modsFile"), SkipError_false);
loadXmlFile(paths.getStringValue("modsPatchFile"), SkipError_true);
loadXmlDir("modsPatchDir", loadXmlFile);
@@ -97,6 +98,7 @@ void ModDB::loadXmlFile(const std::string &fileName,
void ModDB::unload()
{
+ logger->log1("Unloading mod database...");
delete_all(mModInfos);
mModInfos.clear();
mLoaded = false;