diff options
author | Max Horn | 2006-05-03 20:45:57 +0000 |
---|---|---|
committer | Max Horn | 2006-05-03 20:45:57 +0000 |
commit | b67c30f6c8f5b7c31f9acd9aa7fe9ac1d295ba5f (patch) | |
tree | 120b3c88643543b000b921ed8192bb16fd26c844 | |
parent | d016c353c5f2f87278e244ec6418c87d681925b1 (diff) | |
download | scummvm-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
-rw-r--r-- | base/plugins.cpp | 4 |
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()); |