diff options
author | Max Horn | 2005-08-19 17:27:47 +0000 |
---|---|---|
committer | Max Horn | 2005-08-19 17:27:47 +0000 |
commit | ed2a18569a68d5be78d5a893d66979eef9fe06cd (patch) | |
tree | 22b05b4a6255c7f7fbe6c78e15a382d61db5eb5d /base | |
parent | 990ad8f210aa349f24fdf9718795e9b169fb86f5 (diff) | |
download | scummvm-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.cpp | 3 |
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) { |