ReserveFile /plugin now searches folders added with !AddPluginDir

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6591 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2015-07-27 19:32:32 +00:00
parent 6361cfb1f6
commit c679845ad6
3 changed files with 17 additions and 5 deletions

View file

@ -233,6 +233,14 @@ bool Plugins::Initialize(const TCHAR*arcsubdir, bool displayInfo)
return true;
}
bool Plugins::FindDllPath(const tstring filename, tstring&dllPath)
{
tstring dllName = remove_file_extension(filename);
if (!contains(m_dllname_to_path, dllName)) return false;
dllPath = get_paired_value(m_dllname_to_path, dllName);
return true;
}
bool Plugins::GetCommandInfo(const tstring&command, tstring&canoniccmd, tstring&dllPath)
{
const tstring dllname = GetDllName(command);