From afdd182810cd2cd56136409d9d1affa148626f5e Mon Sep 17 00:00:00 2001 From: hikerstk Date: Tue, 16 Feb 2010 23:52:04 +0000 Subject: [PATCH] Fixed incorrect paths (hardcoded instead of using appropriate file_manager functions). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4746 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/items/item_manager.cpp | 4 ++-- src/items/powerup_manager.cpp | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/items/item_manager.cpp b/src/items/item_manager.cpp index e40e27c14..62d4bbc51 100644 --- a/src/items/item_manager.cpp +++ b/src/items/item_manager.cpp @@ -103,8 +103,8 @@ void ItemManager::loadDefaultItems() static const std::string item_names[] = {"bonus-box", "banana", "nitro-big", "nitro-small", "bubblegum" }; - - const XMLNode *root = file_manager->createXMLTree("data/items.xml"); + const std::string file_name = file_manager->getConfigFile("items.xml"); + const XMLNode *root = file_manager->createXMLTree(file_name); for(unsigned int i=Item::ITEM_FIRST; i<=Item::ITEM_LAST; i++) { const XMLNode *node = root->getNode(item_names[i]); diff --git a/src/items/powerup_manager.cpp b/src/items/powerup_manager.cpp index 79a8ac0db..bf17cccae 100644 --- a/src/items/powerup_manager.cpp +++ b/src/items/powerup_manager.cpp @@ -86,7 +86,8 @@ PowerupType PowerupManager::getPowerupType(const std::string &name) */ void PowerupManager::loadAllPowerups() { - XMLNode *root = file_manager->createXMLTree("data/powerup.xml"); + const std::string file_name = file_manager->getConfigFile("powerup.xml"); + XMLNode *root = file_manager->createXMLTree(file_name); for(unsigned int i=0; igetNumNodes(); i++) { const XMLNode *node=root->getNode(i);