summaryrefslogtreecommitdiff
path: root/src/resources/db/emotedb.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/emotedb.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/emotedb.cpp')
-rw-r--r--src/resources/db/emotedb.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resources/db/emotedb.cpp b/src/resources/db/emotedb.cpp
index 72b7f0092..f25b14c5a 100644
--- a/src/resources/db/emotedb.cpp
+++ b/src/resources/db/emotedb.cpp
@@ -49,6 +49,8 @@ void EmoteDB::load()
if (mLoaded)
unload();
+ logger->log1("Initializing emote database...");
+
EmoteSprite *const unknownSprite = new EmoteSprite;
unknownSprite->sprite = AnimatedSprite::load(pathJoin(paths.getStringValue(
"sprites"), paths.getStringValue(
@@ -57,8 +59,6 @@ void EmoteDB::load()
unknownSprite->id = 0;
mUnknown.sprites.push_back(unknownSprite);
- logger->log1("Initializing emote database...");
-
mLastEmote = 0;
loadXmlFile(paths.getStringValue("emotesFile"), SkipError_false);
loadXmlFile(paths.getStringValue("emotesPatchFile"), SkipError_true);
@@ -224,6 +224,7 @@ void EmoteDB::loadSpecialXmlFile(const std::string &fileName,
void EmoteDB::unload()
{
+ logger->log1("Unloading emote database...");
FOR_EACH (EmoteInfos::const_iterator, i, mEmoteInfos)
{
if (i->second != nullptr)