comparison plugin/LADSPAPluginFactory.cpp @ 1179:6b1af0f05f06 pluginscan

Make use of, and warn for, the plugin checker for all types of plugin. Haven't yet resolved the question of how to install and find it.
author Chris Cannam
date Thu, 14 Apr 2016 14:03:18 +0100
parents a1cd5abcb38b
children 6b847a59d908
comparison
equal deleted inserted replaced
1178:bf05d9259dbc 1179:6b1af0f05f06
666 } 666 }
667 #endif // HAVE_LRDF 667 #endif // HAVE_LRDF
668 668
669 generateFallbackCategories(); 669 generateFallbackCategories();
670 670
671 for (std::vector<QString>::iterator i = pathList.begin(); 671 QStringList candidates =
672 i != pathList.end(); ++i) { 672 PluginScan::getInstance()->getCandidateLibrariesFor(getPluginType());
673 673
674 QDir pluginDir(*i, PLUGIN_GLOB); 674 for (QString c: candidates) {
675 675 discoverPluginsFrom(c);
676 for (unsigned int j = 0; j < pluginDir.count(); ++j) {
677 discoverPluginsFrom(QString("%1/%2").arg(*i).arg(pluginDir[j]));
678 }
679 } 676 }
680 } 677 }
681 678
682 void 679 void
683 LADSPAPluginFactory::discoverPluginsFrom(QString soname) 680 LADSPAPluginFactory::discoverPluginsFrom(QString soname)