Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 23, 2006, 6:52:01 PM (18 years ago)
Author:
bensch
Message:

the new ResourceManger should work with the global settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/util/loading/resource.cc

    r9794 r9795  
    5050
    5151  std::string locatedFile;
    52   locatedFile = locateFileInSubDir(Directory("/home/bensch/svn/orxonox/data/"), fileName);
     52  locatedFile = locateFileInSubDir(NewResourceManager::getInstance()->mainGlobalPath(), fileName);
    5353  if (!locatedFile.empty())
    5454  {
     
    5656    return locatedFile;
    5757  }
    58   return std::string("/home/bensch/svn/orxonox/data/") + fileName;
     58
     59  return (NewResourceManager::getInstance()->mainGlobalPath() + File(fileName)).name();
    5960}
    6061
Note: See TracChangeset for help on using the changeset viewer.