Added automatic use of dll commands (see config.h for more details)

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@645 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
sunjammerx 2002-08-05 02:05:00 +00:00
parent 8ef7b8fe3c
commit 31ad4513e9
16 changed files with 752 additions and 18 deletions

View file

@ -352,10 +352,7 @@ int CEXEBuild::preprocess_string(char *out, const char *in)
else if (i == '$')
{
if (*p == '$')
{
i='$';
p++; // Can simply convert $$ to $ now
}
else
{
const char *pVarName;
@ -1824,3 +1821,23 @@ void CEXEBuild::print_warnings()
}
fflush(g_output);
}
// Added by Ximon Eighteen 5th August 2002
#ifdef NSIS_CONFIG_PLUGIN_SUPPORT
void CEXEBuild::build_external_command_table(void)
{
char* nsisdir = definedlist.find("NSISDIR");
if (nsisdir)
{
char* searchPath = new char [strlen(nsisdir)+12];
if (searchPath)
{
strcpy(searchPath,nsisdir);
strcat(searchPath,"\\dlls\\*.dll");
INFO_MSG("\nProcessing plugin dlls: \"%s\"\n",searchPath);
m_externalCommands.FindCommands(searchPath,display_info?true:false);
delete[] searchPath;
}
}
}
#endif // NSIS_CONFIG_PLUGIN_SUPPORT