Fix DYNAMIC_MODULES (update the listDir call used in PluginManager::loadPlugins when using dynamic modules/plugins)
svn-id: r22316
This commit is contained in:
parent
d016c353c5
commit
b67c30f6c8
1 changed files with 2 additions and 2 deletions
|
@ -310,10 +310,10 @@ void PluginManager::loadPlugins() {
|
|||
// Load all plugins.
|
||||
// Scan for all plugins in this directory
|
||||
FilesystemNode dir(PLUGIN_DIRECTORY);
|
||||
if (!dir.isValid() || !dir.isDirectory()) {
|
||||
FSList files;
|
||||
if (dir.listDir(files, FilesystemNode::kListFilesOnly)) {
|
||||
error("Couldn't open plugin directory '%s'", PLUGIN_DIRECTORY);
|
||||
}
|
||||
FSList files(dir.listDir(FilesystemNode::kListFilesOnly));
|
||||
|
||||
for (FSList::const_iterator i = files.begin(); i != files.end(); ++i) {
|
||||
Common::String name(i->displayName());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue