summaryrefslogtreecommitdiff
path: root/src/resources/avatardb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-26 15:47:39 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-26 15:47:39 +0300
commit9fe86d302838c62034c0bf6c74d8ca47722bd40b (patch)
tree58aa24b936547f3489788d5afb1045c89d5029fa /src/resources/avatardb.cpp
parent61e3fa8513c1bc2644348ac6052ab87785fb119d (diff)
downloadplus-9fe86d302838c62034c0bf6c74d8ca47722bd40b.tar.gz
plus-9fe86d302838c62034c0bf6c74d8ca47722bd40b.tar.bz2
plus-9fe86d302838c62034c0bf6c74d8ca47722bd40b.tar.xz
plus-9fe86d302838c62034c0bf6c74d8ca47722bd40b.zip
dehardcode client data configuration file names.
Now names stored in paths.xml
Diffstat (limited to 'src/resources/avatardb.cpp')
-rw-r--r--src/resources/avatardb.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resources/avatardb.cpp b/src/resources/avatardb.cpp
index 39b1184fb..d610a14dc 100644
--- a/src/resources/avatardb.cpp
+++ b/src/resources/avatardb.cpp
@@ -46,12 +46,13 @@ void AvatarDB::load()
if (mLoaded)
unload();
- XML::Document doc("avatars.xml");
+ XML::Document doc(paths.getStringValue("avatarsFile"));
const XmlNodePtr rootNode = doc.rootNode();
if (!rootNode || !xmlNameEqual(rootNode, "avatars"))
{
- logger->log1("Avatars Database: Error while loading avatars.xml!");
+ logger->log("Avatars Database: Error while loading %s!",
+ paths.getStringValue("avatarsFile").c_str());
mLoaded = true;
return;
}