summaryrefslogtreecommitdiff
path: root/src/resources/settingsmanager.cpp
diff options
context:
space:
mode:
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);