summaryrefslogtreecommitdiff
path: root/src/resources/emotedb.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/emotedb.cpp
parent61e3fa8513c1bc2644348ac6052ab87785fb119d (diff)
downloadmv-9fe86d302838c62034c0bf6c74d8ca47722bd40b.tar.gz
mv-9fe86d302838c62034c0bf6c74d8ca47722bd40b.tar.bz2
mv-9fe86d302838c62034c0bf6c74d8ca47722bd40b.tar.xz
mv-9fe86d302838c62034c0bf6c74d8ca47722bd40b.zip
dehardcode client data configuration file names.
Now names stored in paths.xml
Diffstat (limited to 'src/resources/emotedb.cpp')
-rw-r--r--src/resources/emotedb.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/resources/emotedb.cpp b/src/resources/emotedb.cpp
index 09e3551dc..7361d99df 100644
--- a/src/resources/emotedb.cpp
+++ b/src/resources/emotedb.cpp
@@ -53,12 +53,13 @@ void EmoteDB::load()
logger->log1("Initializing emote database...");
- XML::Document doc("emotes.xml");
+ XML::Document doc(paths.getStringValue("emotesFile"));
XmlNodePtr rootNode = doc.rootNode();
if (!rootNode || !xmlNameEqual(rootNode, "emotes"))
{
- logger->log1("Emote Database: Error while loading emotes.xml!");
+ logger->log("Emote Database: Error while loading %s!",
+ paths.getStringValue("emotesFile").c_str());
return;
}
@@ -75,8 +76,8 @@ void EmoteDB::load()
if (id == -1)
{
- logger->log1("Emote Database: Emote with missing ID in "
- "emotes.xml!");
+ logger->log("Emote Database: Emote with missing ID in %s!",
+ paths.getStringValue("emotesFile").c_str());
continue;
}