diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-26 15:47:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-26 15:47:39 +0300 |
commit | 9fe86d302838c62034c0bf6c74d8ca47722bd40b (patch) | |
tree | 58aa24b936547f3489788d5afb1045c89d5029fa /src/resources/emotedb.cpp | |
parent | 61e3fa8513c1bc2644348ac6052ab87785fb119d (diff) | |
download | plus-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/emotedb.cpp')
-rw-r--r-- | src/resources/emotedb.cpp | 9 |
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; } |