Changeset 3983 in orxonox.OLD for orxonox/trunk/src/util
- Timestamp:
- Apr 26, 2005, 3:33:06 AM (20 years ago)
- Location:
- orxonox/trunk/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.