mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 07:52:56 +00:00
Use correct path when loading plugins.
svn path=/trunk/; revision=33362
This commit is contained in:
parent
6208860a11
commit
047aaf23ed
1 changed files with 2 additions and 4 deletions
|
@ -18,11 +18,9 @@ namespace TechBot.Library
|
||||||
public static void LoadPlugins()
|
public static void LoadPlugins()
|
||||||
{
|
{
|
||||||
//get the file names of the dll files in the current directory.
|
//get the file names of the dll files in the current directory.
|
||||||
FileInfo objExeInfo = new FileInfo(@"C:\Ros\current\irc\TechBot\TechBot.Console\bin\Debug\");
|
foreach (string fileName in Directory.GetFiles(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "*.dll"))
|
||||||
|
|
||||||
foreach (FileInfo objInfo in objExeInfo.Directory.GetFiles("*.dll"))
|
|
||||||
{
|
{
|
||||||
LoadPluginsFromDLLFile(objInfo.FullName);
|
LoadPluginsFromDLLFile(fileName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue