Changeset 9443
- Timestamp:
- 01/05/09 18:35:26 (4 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/src/osgDB/Registry.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgDB/Registry.cpp
r9124 r9443 1473 1473 } 1474 1474 } 1475 1476 // if filename contains archive 1477 // then get archive name 1478 // if archive name is not in the cache then do an openArchive on 1479 // that archive name 1480 // use that archive to read the file. 1481 1482 if (containsServerAddress(readFunctor._filename)) 1483 { 1484 ReaderWriter* rw = getReaderWriterForExtension("curl"); 1485 if (rw) 1486 { 1487 return readFunctor.doRead(*rw); 1488 } 1489 else 1490 { 1491 return ReaderWriter::ReadResult("Warning: Could not find the .curl plugin to read from server."); 1492 } 1493 } 1494 1475 1495 1476 // record the errors reported by readerwriters. 1496 1477 typedef std::vector<ReaderWriter::ReadResult> Results; … … 1557 1538 } 1558 1539 } 1540 1541 //If the filename contains a server address and wasn't loaded by any of the plugins, try to use the CURL plugin 1542 //to download the file and use the stream reading functionality of the plugins to load the file 1543 if (containsServerAddress(readFunctor._filename)) 1544 { 1545 ReaderWriter* rw = getReaderWriterForExtension("curl"); 1546 if (rw) 1547 { 1548 return readFunctor.doRead(*rw); 1549 } 1550 else 1551 { 1552 return ReaderWriter::ReadResult("Warning: Could not find the .curl plugin to read from server."); 1553 } 1554 } 1559 1555 1560 1556 if (!results.empty())
