Changeset 9795 in orxonox.OLD for branches/new_class_id/src/lib
- Timestamp:
- Sep 23, 2006, 6:52:01 PM (18 years ago)
- Location:
- branches/new_class_id/src/lib/util/loading
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/loading/new_resource_manager.cc
r9794 r9795 34 34 NewResourceManager::NewResourceManager () 35 35 { 36 //this->registerObject(this, NewResourceManager::_objectList);36 this->registerObject(this, NewResourceManager::_objectList); 37 37 this->setName("NewResourceManager"); 38 38 … … 103 103 104 104 105 106 bool NewResourceManager::checkFileInMainPath(const File& fileInside) 107 { 108 return (this->_mainGlobalPath + fileInside).exists(); 109 } 110 111 105 112 /** 106 113 * @brief outputs debug information about the NewResourceManager … … 114 121 std::vector<Resources::Type*>::const_iterator it; 115 122 for (it = this->_resourceTypes.begin(); it != this->_resourceTypes.end(); ++it) 123 { 116 124 (*it)->debug(); 125 if (it != --this->_resourceTypes.end()) 126 PRINT(0)(" ------------------------------------\n "); 127 } 117 128 118 129 PRINT(0)("==================================RM==\n"); -
branches/new_class_id/src/lib/util/loading/new_resource_manager.h
r9794 r9795 33 33 34 34 35 bool verifyDataDir(const std::string& fileInside);35 bool checkFileInMainPath(const File& fileInside); 36 36 37 37 bool unloadAllByPriority(); -
branches/new_class_id/src/lib/util/loading/resource.cc
r9794 r9795 50 50 51 51 std::string locatedFile; 52 locatedFile = locateFileInSubDir( Directory("/home/bensch/svn/orxonox/data/"), fileName);52 locatedFile = locateFileInSubDir(NewResourceManager::getInstance()->mainGlobalPath(), fileName); 53 53 if (!locatedFile.empty()) 54 54 { … … 56 56 return locatedFile; 57 57 } 58 return std::string("/home/bensch/svn/orxonox/data/") + fileName; 58 59 return (NewResourceManager::getInstance()->mainGlobalPath() + File(fileName)).name(); 59 60 } 60 61
Note: See TracChangeset
for help on using the changeset viewer.