Added handling of return value

This commit is contained in:
Robert Osfield
2016-06-23 10:06:12 +01:00
parent 57b999b310
commit e044fa0d70

View File

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