summaryrefslogtreecommitdiff
path: root/src/resources/monsterdb.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/monsterdb.cpp
parent61e3fa8513c1bc2644348ac6052ab87785fb119d (diff)
downloadmanaplus-9fe86d302838c62034c0bf6c74d8ca47722bd40b.tar.gz
manaplus-9fe86d302838c62034c0bf6c74d8ca47722bd40b.tar.bz2
manaplus-9fe86d302838c62034c0bf6c74d8ca47722bd40b.tar.xz
manaplus-9fe86d302838c62034c0bf6c74d8ca47722bd40b.zip
dehardcode client data configuration file names.
Now names stored in paths.xml
Diffstat (limited to 'src/resources/monsterdb.cpp')
-rw-r--r--src/resources/monsterdb.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resources/monsterdb.cpp b/src/resources/monsterdb.cpp
index 9fcd2be0c..870b53fa5 100644
--- a/src/resources/monsterdb.cpp
+++ b/src/resources/monsterdb.cpp
@@ -50,12 +50,13 @@ void MonsterDB::load()
logger->log1("Initializing monster database...");
- XML::Document doc("monsters.xml");
+ XML::Document doc(paths.getStringValue("monstersFile"));
const XmlNodePtr rootNode = doc.rootNode();
if (!rootNode || !xmlNameEqual(rootNode, "monsters"))
{
- logger->log1("Monster Database: Error while loading monster.xml!");
+ logger->log("Monster Database: Error while loading %s!",
+ paths.getStringValue("monstersFile").c_str());
mLoaded = true;
return;
}