diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-03 22:43:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-04 00:57:58 +0300 |
commit | de73e67e830c15e6b623ba03eda88f9faacac40c (patch) | |
tree | 79422e9c944b751cd0c0b8ad6fd37e32ddaaa130 /src/resources/db/horsedb.cpp | |
parent | 653f89fa3b236103670796af4b76a23e8ae84248 (diff) | |
download | manaverse-de73e67e830c15e6b623ba03eda88f9faacac40c.tar.gz manaverse-de73e67e830c15e6b623ba03eda88f9faacac40c.tar.bz2 manaverse-de73e67e830c15e6b623ba03eda88f9faacac40c.tar.xz manaverse-de73e67e830c15e6b623ba03eda88f9faacac40c.zip |
Add missing load / unload databases logging.
Diffstat (limited to 'src/resources/db/horsedb.cpp')
-rw-r--r-- | src/resources/db/horsedb.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resources/db/horsedb.cpp b/src/resources/db/horsedb.cpp index c9f363246..a59c18e3f 100644 --- a/src/resources/db/horsedb.cpp +++ b/src/resources/db/horsedb.cpp @@ -61,6 +61,8 @@ void HorseDB::load() if (mLoaded) unload(); + logger->log1("Initializing horse database..."); + SpriteReference *currentSprite = new SpriteReference; currentSprite->sprite = pathJoin(paths.getStringValue("sprites"), paths.getStringValue("spriteErrorFile")); @@ -73,8 +75,6 @@ void HorseDB::load() currentSprite->variant = 0; mUnknown.upSprites.push_back(currentSprite); - logger->log1("Initializing horse database..."); - loadXmlFile(paths.getStringValue("horsesFile"), SkipError_false); loadXmlFile(paths.getStringValue("horsesPatchFile"), SkipError_true); loadXmlDir("horsesPatchDir", loadXmlFile); @@ -264,6 +264,7 @@ static void loadUpSprites(XmlNodePtrConst parentNode, void HorseDB::unload() { + logger->log1("Unloading horse database..."); FOR_EACH (HorseInfos::const_iterator, i, mHorseInfos) { delete_all(i->second->upSprites); |