Added handling of return value
This commit is contained in:
parent
55d0e6918d
commit
ff3570bfa5
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user