From 9fe86d302838c62034c0bf6c74d8ca47722bd40b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 26 May 2013 15:47:39 +0300 Subject: dehardcode client data configuration file names. Now names stored in paths.xml --- src/resources/emotedb.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/resources/emotedb.cpp') 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; } -- cgit v1.2.3-70-g09d2