diff options
author | Torbjörn Andersson | 2006-05-04 03:50:30 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-05-04 03:50:30 +0000 |
commit | 6a419462198fb02bbcca29e7e896c3da2ae39f94 (patch) | |
tree | 5b59c27282271fb4d2dab9fb06c368630eeb1523 /base | |
parent | 24a46d5da8604c70ab93684984f8fc599812a715 (diff) | |
download | scummvm-rg350-6a419462198fb02bbcca29e7e896c3da2ae39f94.tar.gz scummvm-rg350-6a419462198fb02bbcca29e7e896c3da2ae39f94.tar.bz2 scummvm-rg350-6a419462198fb02bbcca29e7e896c3da2ae39f94.zip |
The loadPlugins() function works a bit better if it doesn't fail when listDir()
succeeds. ;-)
svn-id: r22325
Diffstat (limited to 'base')
-rw-r--r-- | base/plugins.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/plugins.cpp b/base/plugins.cpp index cdcb480c40..3cc2756d9d 100644 --- a/base/plugins.cpp +++ b/base/plugins.cpp @@ -311,7 +311,7 @@ void PluginManager::loadPlugins() { // Scan for all plugins in this directory FilesystemNode dir(PLUGIN_DIRECTORY); FSList files; - if (dir.listDir(files, FilesystemNode::kListFilesOnly)) { + if (!dir.listDir(files, FilesystemNode::kListFilesOnly)) { error("Couldn't open plugin directory '%s'", PLUGIN_DIRECTORY); } |