summaryrefslogtreecommitdiff
path: root/src/resources/db/statuseffectdb.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/statuseffectdb.cpp
parent653f89fa3b236103670796af4b76a23e8ae84248 (diff)
downloadmv-de73e67e830c15e6b623ba03eda88f9faacac40c.tar.gz
mv-de73e67e830c15e6b623ba03eda88f9faacac40c.tar.bz2
mv-de73e67e830c15e6b623ba03eda88f9faacac40c.tar.xz
mv-de73e67e830c15e6b623ba03eda88f9faacac40c.zip
Add missing load / unload databases logging.
Diffstat (limited to 'src/resources/db/statuseffectdb.cpp')
-rw-r--r--src/resources/db/statuseffectdb.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resources/db/statuseffectdb.cpp b/src/resources/db/statuseffectdb.cpp
index d5fc96849..b02c666d6 100644
--- a/src/resources/db/statuseffectdb.cpp
+++ b/src/resources/db/statuseffectdb.cpp
@@ -71,6 +71,8 @@ void StatusEffectDB::load()
if (mLoaded)
unload();
+ logger->log1("Initializing status effect database...");
+
loadXmlFile(paths.getStringValue("statusEffectsFile"), SkipError_false);
loadXmlFile(paths.getStringValue("statusEffectsPatchFile"),
SkipError_true);
@@ -213,6 +215,8 @@ void StatusEffectDB::unload()
if (!mLoaded)
return;
+ logger->log1("Unloading status effect database...");
+
fakeId = 10000;
unloadMap(statusEffects[0]);
unloadMap(statusEffects[1]);