Changeset 4115 in orxonox.OLD for orxonox/trunk/src/util/resource_manager.cc
- Timestamp:
- May 7, 2005, 10:13:19 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/resource_manager.cc
r4091 r4115 202 202 // searching if the resource was loaded before. 203 203 Resource* tmpResource = this->locateResourceByInfo(fileName, type, param1, param2,param3); 204 if (tmpResource) // if the resource was notloaded before.204 if (tmpResource) // if the resource was loaded before. 205 205 { 206 206 PRINTF(4)("not loading cached resource %s\n", tmpResource->name); … … 221 221 222 222 // creating the full name. (directoryName + FileName) 223 char* fullName = new char[strlen( dataDir)+strlen(fileName)+1];224 sprintf(fullName, "%s%s", this-> dataDir, fileName);225 223 char* fullName = new char[strlen(this->getDataDir())+strlen(fileName)+1]; 224 sprintf(fullName, "%s%s", this->getDataDir(), fileName); 225 printf("FULLNAME: %s\n", fullName); 226 226 // Checking for the type of resource \see ResourceType 227 227 switch(type) … … 233 233 tmpResource->modelSize = 1.0; 234 234 235 if( isFile(fullName))235 if(ResourceManager::isFile(fullName)) 236 236 tmpResource->pointer = new OBJModel(fullName, tmpResource->modelSize); 237 237 else
Note: See TracChangeset
for help on using the changeset viewer.