Changeset 7266 in orxonox.OLD for branches/shared_lib/src/lib
- Timestamp:
- Apr 2, 2006, 5:40:29 PM (19 years ago)
- Location:
- branches/shared_lib/src/lib/util/loading
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/shared_lib/src/lib/util/loading/dynamic_loader.cc
r7264 r7266 103 103 if (ResourceManager::isDir(absSearchDir)) 104 104 { 105 //printf("ADDED %s\n", absSearchDir.c_str()); 105 106 DynamicLoader::addSearchDir(absSearchDir); 106 107 return true; … … 108 109 else 109 110 { 111 //printf("not a directory %s\n", absSearchDir.c_str()); 110 112 return false; 111 113 } -
branches/shared_lib/src/lib/util/loading/resource_manager.cc
r7264 r7266 870 870 return ""; 871 871 std::string retName = name; 872 if ( strncmp(name.c_str(), "/", 1))872 if (name[0] != '/') 873 873 { 874 874 if (name[0] == '.' && name[1] != '.') 875 retName.erase(0); 876 const std::string& absDir = ResourceManager::cwd(); 877 retName = absDir + retName; 875 retName.erase(0, 1); 876 retName = ResourceManager::cwd() + retName; 878 877 } 879 878 return retName;
Note: See TracChangeset
for help on using the changeset viewer.