aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorMax Horn2006-05-03 20:45:57 +0000
committerMax Horn2006-05-03 20:45:57 +0000
commitb67c30f6c8f5b7c31f9acd9aa7fe9ac1d295ba5f (patch)
tree120b3c88643543b000b921ed8192bb16fd26c844 /base
parentd016c353c5f2f87278e244ec6418c87d681925b1 (diff)
downloadscummvm-rg350-b67c30f6c8f5b7c31f9acd9aa7fe9ac1d295ba5f.tar.gz
scummvm-rg350-b67c30f6c8f5b7c31f9acd9aa7fe9ac1d295ba5f.tar.bz2
scummvm-rg350-b67c30f6c8f5b7c31f9acd9aa7fe9ac1d295ba5f.zip
Fix DYNAMIC_MODULES (update the listDir call used in PluginManager::loadPlugins when using dynamic modules/plugins)
svn-id: r22316
Diffstat (limited to 'base')
-rw-r--r--base/plugins.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/plugins.cpp b/base/plugins.cpp
index 13b18c3eab..cdcb480c40 100644
--- a/base/plugins.cpp
+++ b/base/plugins.cpp
@@ -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());