diff options
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) { |