aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorMax Horn2005-08-19 17:27:47 +0000
committerMax Horn2005-08-19 17:27:47 +0000
commited2a18569a68d5be78d5a893d66979eef9fe06cd (patch)
tree22b05b4a6255c7f7fbe6c78e15a382d61db5eb5d /base
parent990ad8f210aa349f24fdf9718795e9b169fb86f5 (diff)
downloadscummvm-rg350-ed2a18569a68d5be78d5a893d66979eef9fe06cd.tar.gz
scummvm-rg350-ed2a18569a68d5be78d5a893d66979eef9fe06cd.tar.bz2
scummvm-rg350-ed2a18569a68d5be78d5a893d66979eef9fe06cd.zip
Detect when plugins directory is missing
svn-id: r18703
Diffstat (limited to 'base')
-rw-r--r--base/plugins.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/plugins.cpp b/base/plugins.cpp
index 8f99157322..3af0954719 100644
--- a/base/plugins.cpp
+++ b/base/plugins.cpp
@@ -273,6 +273,9 @@ void PluginManager::loadPlugins() {
// Load all plugins.
// Scan for all plugins in this directory
FilesystemNode dir(PLUGIN_DIRECTORY);
+ if (!dir.isValid() || !dir.isDirectory()) {
+ 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) {