Improved the feedback for when a plugin isn't available.
This commit is contained in:
parent
7dabdf5d7e
commit
53aad98d09
@ -79,13 +79,12 @@ static std::string padwithspaces(const std::string& str, unsigned int padLength)
|
|||||||
|
|
||||||
bool osgDB::outputPluginDetails(std::ostream& out, const std::string& fileName)
|
bool osgDB::outputPluginDetails(std::ostream& out, const std::string& fileName)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
out<<"Plugin "<<fileName<<std::endl;
|
|
||||||
out<<"{"<<std::endl;
|
|
||||||
osgDB::ReaderWriterInfoList infoList;
|
osgDB::ReaderWriterInfoList infoList;
|
||||||
if (osgDB::queryPlugin(fileName, infoList))
|
if (osgDB::queryPlugin(fileName, infoList))
|
||||||
{
|
{
|
||||||
|
out<<"Plugin "<<fileName<<std::endl;
|
||||||
|
out<<"{"<<std::endl;
|
||||||
|
|
||||||
for(osgDB::ReaderWriterInfoList::iterator rwi_itr = infoList.begin();
|
for(osgDB::ReaderWriterInfoList::iterator rwi_itr = infoList.begin();
|
||||||
rwi_itr != infoList.end();
|
rwi_itr != infoList.end();
|
||||||
++rwi_itr)
|
++rwi_itr)
|
||||||
@ -141,7 +140,11 @@ bool osgDB::outputPluginDetails(std::ostream& out, const std::string& fileName)
|
|||||||
}
|
}
|
||||||
out<<" }"<<std::endl;
|
out<<" }"<<std::endl;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
out<<"}"<<std::endl<<std::endl;
|
out<<"}"<<std::endl<<std::endl;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
out<<"Plugin "<<fileName<<" not found."<<std::endl;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user