Commit 8ad04d81 authored by Mike Kremer's avatar Mike Kremer
Browse files

Declared searching for plugins in plugins root directory as deprecated....

Declared searching for plugins in plugins root directory as deprecated. Instead go into Plugins/OS/ARCH/BUILD

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4898 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 6df03e7e
......@@ -139,28 +139,11 @@ void Core::loadPlugins()
filters << "*.so";
#endif
QStringList pluginlist = tempDir.entryList(filters, QDir::Files);
for (int i=0; i < pluginlist.size(); i++)
pluginlist[i] = tempDir.absoluteFilePath(pluginlist[i]);
//try to load plugins from old location
emit log(LOGOUT,"Trying to find Plugins at " + tempDir.absolutePath() );
// Get all files in the Plugin dir
QStringList pluginlist2 = OpenFlipper::Options::pluginDir().entryList(filters,QDir::Files);
for (int i=0; i < pluginlist2.size(); i++)
pluginlist2[i] = OpenFlipper::Options::pluginDir().absoluteFilePath(pluginlist2[i]);
QStringList pluginlist = OpenFlipper::Options::pluginDir().entryList(filters,QDir::Files);
// Remove all duplicate entries
for (QStringList::const_iterator constIterator = pluginlist.constBegin(); constIterator != pluginlist.constEnd();
++constIterator) {
pluginlist2.removeAll((*constIterator));
}
pluginlist += pluginlist2;
for (int i=0; i < pluginlist.size(); i++)
pluginlist[i] = OpenFlipper::Options::pluginDir().absoluteFilePath(pluginlist[i]);
// Get all config files to be used
QStringList configFiles = OpenFlipper::Options::optionFiles();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment