1
0

Plugin folders now check for "." and "..".

This fixes #207.
This commit is contained in:
madmaxoft 2013-10-06 16:58:19 +02:00
parent d41f3a1b0c
commit d8dfa8cd88

View File

@ -75,9 +75,9 @@ void cPluginManager::FindPlugins(void)
AStringList Files = GetDirectoryContents(PluginsPath.c_str());
for (AStringList::const_iterator itr = Files.begin(); itr != Files.end(); ++itr)
{
if (!cFile::IsFolder(PluginsPath + *itr))
if ((*itr == ".") || (*itr == "..") || (!cFile::IsFolder(PluginsPath + *itr)))
{
// We only want folders
// We only want folders, and don't want "." or ".."
continue;
}