Changeset 9793 in orxonox.OLD for branches/new_class_id/src/lib/util/loading/resource.cc
- Timestamp:
- Sep 23, 2006, 3:48:03 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/loading/resource.cc
r9792 r9793 49 49 return (NewResourceManager::getInstance()->mainGlobalPath() + File(fileName)).name(); 50 50 51 printf("LOCATED %s\n", locateFileInSubDir(Directory("/home/bensch/svn/orxonox/data/"), fileName).c_str()); 52 51 std::string locatedFile; 52 locatedFile = locateFileInSubDir(Directory("/home/bensch/svn/orxonox/data/"), fileName); 53 if (!locatedFile.empty()) 54 { 55 printf("FILE found %s\n", locatedFile.c_str()); 56 return locatedFile; 57 } 53 58 return std::string("/home/bensch/svn/orxonox/data/") + fileName; 54 59 } … … 129 134 { 130 135 NewResourceManager::getInstance()->registerType(this); 136 printf("%s\n", typeName.c_str()); 131 137 } 132 138 … … 163 169 this->_id = id; 164 170 } 171 172 173 void Resources::Type::debug() const 174 { 175 PRINT(0)(" ResourceType '%s' with ID %d stores %d Resources\n", this->_typeName.c_str(), this->_id, this->_storedResources.size()); 176 PRINT(0)(" Paths:\n"); 177 for (unsigned int i = 0; i < this->_resourcePaths.size(); ++i) 178 PRINT(0)(" %s\n", this->_resourcePaths[i].name().c_str()); 179 PRINT(0)(" Sub-Paths:\n"); 180 for (unsigned int i = 0; i < this->_resourceSubPaths.size(); ++i) 181 PRINT(0)(" %s\n", this->_resourceSubPaths[i].name().c_str()); 182 183 }
Note: See TracChangeset
for help on using the changeset viewer.