Changeset 8351 for code/trunk/src/libraries/core/Resource.cc
- Timestamp:
- Apr 28, 2011, 7:15:14 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/Resource.cc
r6746 r8351 34 34 #include <OgreResourceGroupManager.h> 35 35 36 // Differentiate Boost Filesystem v2 and v3 37 #if (BOOST_FILESYSTEM_VERSION < 3) 38 # define BF_GENERIC_STRING string 39 #else 40 # define BF_GENERIC_STRING generic_string 41 #endif 42 36 43 namespace orxonox 37 44 { 38 std::string Resource::DEFAULT_GROUP(Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); 45 const std::string& Resource::getDefaultResourceGroup() 46 { 47 return Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME; 48 } 39 49 40 50 DataStreamPtr Resource::open(const std::string& name) 41 51 { 42 52 return Ogre::ResourceGroupManager::getSingleton().openResource(name, 43 Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, true);53 getDefaultResourceGroup(), true); 44 54 } 45 55 … … 95 105 boost::filesystem::path base(it->archive->getName()); 96 106 base /= it->filename; 97 ptr->fileSystemPath = base. string();107 ptr->fileSystemPath = base.BF_GENERIC_STRING(); 98 108 } 99 109 return ptr;
Note: See TracChangeset
for help on using the changeset viewer.