summaryrefslogtreecommitdiff
path: root/src/resources/settingsmanager.cpp
diff options
context:
space:
mode:
authorPrzemysław Grzywacz <nexather@gmail.com>2013-05-07 17:45:26 +0200
committerPrzemysław Grzywacz <nexather@gmail.com>2013-05-07 17:45:26 +0200
commit92c09d42b782deff9dcb9dcc6b408fdd36bc4f37 (patch)
treeba6fc1735e766e32bf3eb76531b8ea506b9bd241 /src/resources/settingsmanager.cpp
parentbd1fdd87eed48ba3ffcc413936d6a6a60a429a97 (diff)
downloadmana-92c09d42b782deff9dcb9dcc6b408fdd36bc4f37.tar.gz
mana-92c09d42b782deff9dcb9dcc6b408fdd36bc4f37.tar.bz2
mana-92c09d42b782deff9dcb9dcc6b408fdd36bc4f37.tar.xz
mana-92c09d42b782deff9dcb9dcc6b408fdd36bc4f37.zip
items.xml can be used from settings.xml
Diffstat (limited to 'src/resources/settingsmanager.cpp')
-rw-r--r--src/resources/settingsmanager.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/resources/settingsmanager.cpp b/src/resources/settingsmanager.cpp
index 3cbb115c..b2d1fe80 100644
--- a/src/resources/settingsmanager.cpp
+++ b/src/resources/settingsmanager.cpp
@@ -21,8 +21,9 @@
#include "resources/settingsmanager.h"
#include "resources/attributes.h"
-#include "resources/monsterdb.h"
#include "resources/hairdb.h"
+#include "resources/itemdb.h"
+#include "resources/monsterdb.h"
#include "resources/specialdb.h"
#include "resources/npcdb.h"
#include "resources/emotedb.h"
@@ -48,6 +49,7 @@ namespace SettingsManager
// initialize managers
Attributes::init();
hairDB.init();
+ itemDb->init();
MonsterDB::init();
SpecialDB::init();
NPCDB::init();
@@ -60,6 +62,7 @@ namespace SettingsManager
Attributes::checkStatus();
hairDB.checkStatus();
+ itemDb->checkStatus();
MonsterDB::checkStatus();
SpecialDB::checkStatus();
NPCDB::checkStatus();
@@ -80,6 +83,7 @@ namespace SettingsManager
NPCDB::unload();
SpecialDB::unload();
MonsterDB::unload();
+ itemDb->unload();
hairDB.unload();
Attributes::unload();
}
@@ -149,6 +153,10 @@ namespace SettingsManager
{
hairDB.readHairColorNode(childNode, filename);
}
+ else if (xmlStrEqual(childNode->name, BAD_CAST "item"))
+ {
+ itemDb->readItemNode(childNode, filename);
+ }
else if (xmlStrEqual(childNode->name, BAD_CAST "monster"))
{
MonsterDB::readMonsterNode(childNode, filename);