Added handling of return value

This commit is contained in:
Robert Osfield 2016-06-23 08:53:14 +01:00
parent 55d0e6918d
commit ff3570bfa5

View File

@ -570,13 +570,19 @@ void Registry::readCommandLine(osg::ArgumentParser& arguments)
std::string value; std::string value;
while(arguments.read("-l",value)) while(arguments.read("-l",value))
{ {
loadLibrary(value); if (loadLibrary(value)!=NOT_LOADED)
{
OSG_NOTICE<<"Unable to load library : "<<value<<std::endl;
}
} }
while(arguments.read("-e",value)) while(arguments.read("-e",value))
{ {
std::string libName = createLibraryNameForExtension(value); std::string libName = createLibraryNameForExtension(value);
loadLibrary(libName); if (loadLibrary(libName)!=NOT_LOADED)
{
OSG_NOTICE<<"Unable to load library : "<<libName<<std::endl;
}
} }
while(arguments.read("-O",value)) while(arguments.read("-O",value))