Added handling of return value

This commit is contained in:
Robert Osfield 2016-06-23 16:32:30 +01:00
parent 07137f4111
commit b0285b0022

View File

@ -625,7 +625,10 @@ int main( int argc, char **argv )
while (arguments.read("-e",ext)) while (arguments.read("-e",ext))
{ {
std::string libName = osgDB::Registry::instance()->createLibraryNameForExtension(ext); std::string libName = osgDB::Registry::instance()->createLibraryNameForExtension(ext);
osgDB::Registry::instance()->loadLibrary(libName); if (osgDB::Registry::instance()->loadLibrary(libName)==osgDB::Registry::NOT_LOADED)
{
OSG_NOTICE<<"Unable to load library : "<<libName<<std::endl;
}
} }
std::string libName; std::string libName;