Skip to content

Commit

Permalink
loadByPath should load DynamicLibrary if they're not already loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed May 8, 2015
1 parent d639bd7 commit 397936b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/PluginManager.cpp
Expand Up @@ -330,8 +330,10 @@ bool PluginManager::loadByPath(const std::string& pluginPath,
boost::filesystem::path path(pluginPath);
std::string pathname = Utils::tolower(path.filename().string());

// If we are a valid type, and we're not yet already
// loaded in the LibraryMap, load it.
if (pluginTypeValid(pathname, type) &&
m_dynamicLibraryMap.find(path.string()) != m_dynamicLibraryMap.end())
m_dynamicLibraryMap.find(path.string()) == m_dynamicLibraryMap.end())
{
std::string errorString;
auto completePath(boost::filesystem::complete(path).string());
Expand Down

0 comments on commit 397936b

Please sign in to comment.