| 493 | | std::string::size_type posDoubleColon = name.rfind("::"); |
| 494 | | if ( posDoubleColon!=std::string::npos ) |
| 495 | | { |
| 496 | | std::string libName = std::string( name, 0, posDoubleColon ); |
| 497 | | |
| 498 | | std::string nodeKitLib = osgDB::Registry::instance()->createLibraryNameForNodeKit(libName); |
| 499 | | if ( osgDB::Registry::instance()->loadLibrary(nodeKitLib)==osgDB::Registry::LOADED ) |
| 500 | | return findCompressor(name); |
| 501 | | |
| 502 | | std::string pluginLib = osgDB::Registry::instance()->createLibraryNameForExtension(std::string("compressor_")+libName); |
| 503 | | if ( osgDB::Registry::instance()->loadLibrary(pluginLib)==osgDB::Registry::LOADED ) |
| 504 | | return findCompressor(name); |
| 505 | | |
| 506 | | pluginLib = osgDB::Registry::instance()->createLibraryNameForExtension(libName); |
| 507 | | if ( osgDB::Registry::instance()->loadLibrary(pluginLib)==osgDB::Registry::LOADED ) |
| 508 | | return findCompressor(name); |
| 509 | | } |
| | 493 | std::string nodeKitLib = osgDB::Registry::instance()->createLibraryNameForNodeKit(name); |
| | 494 | if ( osgDB::Registry::instance()->loadLibrary(nodeKitLib)==osgDB::Registry::LOADED ) |
| | 495 | return findCompressor(name); |
| | 496 | |
| | 497 | std::string pluginLib = osgDB::Registry::instance()->createLibraryNameForExtension(std::string("compressor_")+name); |
| | 498 | if ( osgDB::Registry::instance()->loadLibrary(pluginLib)==osgDB::Registry::LOADED ) |
| | 499 | return findCompressor(name); |
| | 500 | |
| | 501 | pluginLib = osgDB::Registry::instance()->createLibraryNameForExtension(name); |
| | 502 | if ( osgDB::Registry::instance()->loadLibrary(pluginLib)==osgDB::Registry::LOADED ) |
| | 503 | return findCompressor(name); |