Changeset 4122 in orxonox.OLD for orxonox/branches/heightMap/src/util/resource_manager.h
- Timestamp:
- May 9, 2005, 11:29:19 AM (20 years ago)
- Location:
- orxonox/branches/heightMap
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/heightMap
- Property svn:externals
-
old new 1 data http://svn.orxonox.ethz.ch/data 1
-
- Property svn:externals
-
orxonox/branches/heightMap/src/util/resource_manager.h
r3911 r4122 65 65 66 66 bool setDataDir(const char* dataDir); 67 /** \returns the Name of the data directory */ 68 inline const char* getDataDir(void) {return this->dataDir;} 69 bool checkDataDir(const char* fileInside); 67 70 bool addImageDir(char* imageDir); 68 71 void* load(const char* fileName, ResourcePriority prio = RP_NO, … … 73 76 bool unload(Resource* resource, ResourcePriority = RP_NO); 74 77 bool unloadAllByPriority(ResourcePriority prio); 78 75 79 void debug(void); 80 81 // utility functions of this class 82 static bool isDir(const char* directory); 83 static bool isFile(const char* fileName); 84 static bool touchFile(const char* fileName); 85 static bool deleteFile(const char* fileName); 86 static char* homeDirCheck(const char* name); 76 87 77 88 private: … … 87 98 Resource* locateResourceByPointer(const void* pointer); 88 99 89 bool isDir(const char* directory);90 bool isFile(const char* directory);91 92 100 }; 93 101
Note: See TracChangeset
for help on using the changeset viewer.