summaryrefslogtreecommitdiff
path: root/src/resources/db/emotedb.cpp
diff options
context:
space:
mode:
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)