Changeset 3983 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Apr 26, 2005, 3:33:06 AM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/orxonox.cc
r3966 r3983 167 167 PRINT(3)("initializing ResourceManager\n"); 168 168 resourceManager = ResourceManager::getInstance(); 169 resourceManager->setDataDir("../data/"); 169 if (!resourceManager->setDataDir("data/")) 170 if (!resourceManager->setDataDir("../data/")) 171 if (!resourceManager->setDataDir("../../data/")) 172 resourceManager->setDataDir("../../../data/"); 170 173 return 0; 171 174 PRINT(3)("initializing TextEngine\n"); -
orxonox/trunk/src/util/resource_manager.cc
r3883 r3983 92 92 this->dataDir = new char[strlen(dataDir)+1]; 93 93 strcpy(this->dataDir, dataDir); 94 return true; 94 95 } 95 96 else 96 97 { 97 98 PRINTF(1)("%s is not a Directory, and can not be the Data Directory, leaving as %s \n", dataDir, this->dataDir); 99 return false; 98 100 } 99 101 } -
orxonox/trunk/src/util/resource_manager.h
r3911 r3983 73 73 bool unload(Resource* resource, ResourcePriority = RP_NO); 74 74 bool unloadAllByPriority(ResourcePriority prio); 75 75 76 void debug(void); 77 78 // utility functions of this class 79 static bool isDir(const char* directory); 80 static bool isFile(const char* directory); 76 81 77 82 private: … … 87 92 Resource* locateResourceByPointer(const void* pointer); 88 93 89 bool isDir(const char* directory);90 bool isFile(const char* directory);91 92 94 }; 93 95
Note: See TracChangeset
for help on using the changeset viewer.