From ff3570bfa553199b381fc93b9fd434c00f4b9431 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 23 Jun 2016 08:53:14 +0100 Subject: [PATCH] Added handling of return value --- src/osgDB/Registry.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/osgDB/Registry.cpp b/src/osgDB/Registry.cpp index 386fcacc0..6579240af 100644 --- a/src/osgDB/Registry.cpp +++ b/src/osgDB/Registry.cpp @@ -570,13 +570,19 @@ void Registry::readCommandLine(osg::ArgumentParser& arguments) std::string value; while(arguments.read("-l",value)) { - loadLibrary(value); + if (loadLibrary(value)!=NOT_LOADED) + { + OSG_NOTICE<<"Unable to load library : "<