summaryrefslogtreecommitdiff
path: root/src/resources/db/sounddb.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/sounddb.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/sounddb.cpp')
-rw-r--r--src/resources/db/sounddb.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/db/sounddb.cpp b/src/resources/db/sounddb.cpp
index 90dc9fe00..7c9ecbdd0 100644
--- a/src/resources/db/sounddb.cpp
+++ b/src/resources/db/sounddb.cpp
@@ -21,6 +21,7 @@
#include "resources/db/sounddb.h"
#include "configuration.h"
+#include "logger.h"
#include "notifymanager.h"
#include "enums/resources/notifytypes.h"
@@ -38,6 +39,7 @@ namespace
void SoundDB::load()
{
unload();
+ logger->log1("Initializing sound database...");
loadXmlFile(paths.getStringValue("soundsFile"), SkipError_false);
loadXmlFile(paths.getStringValue("soundsPatchFile"), SkipError_true);
loadXmlDir("soundsPatchDir", loadXmlFile);
@@ -83,6 +85,7 @@ void SoundDB::loadXmlFile(const std::string &fileName,
void SoundDB::unload()
{
+ logger->log1("Unloading sound database...");
mSounds.resize(NotifyTypes::TYPE_END);
for (int f = 0; f < NotifyTypes::TYPE_END; f ++)
mSounds[f].clear();