--- trunk/RomCheater.PluginFramework/Core/PluginLoader.cs 2012/05/09 17:48:15 83 +++ trunk/RomCheater.PluginFramework/Core/PluginLoader.cs 2012/05/09 17:55:55 84 @@ -4,6 +4,7 @@ using System.Linq; using System.Text; using RomCheater.PluginFramework.Interfaces; using RomCheater.Logging; +using System.IO; namespace RomCheater.PluginFramework.Core { @@ -20,7 +21,17 @@ namespace RomCheater.PluginFramework.Cor public void LoadPlugins() { logger.Info.WriteLine("Loading Plugins..."); - logger.Info.WriteLine("Plguins Loaded."); + + string PluginPath = string.Format(@"{0}\Plugins", typeof(PluginLoader).Assembly.Location.Replace(@"\RomCheater.PluginFramework.dll", "")); + logger.Debug.WriteLine("Plugins Path: {0}", PluginPath); + List<string> dlls = new List<string>(Directory.GetFiles(PluginPath, "*.dll")); + logger.Debug.WriteLine(" Found: {0} plugin dlls", dlls.Count); + foreach (string dll in dlls) + { + FileInfo fi = new FileInfo(dll); + logger.Debug.WriteLine(" plugin[{0}]: {1}", dlls.IndexOf(dll), fi.Name); + } + logger.Info.WriteLine("Plugins Loaded."); } public List<IConfigPlugin> LoadedConfigPlugins { get; private set; } public List<IInputPlugin> LoadedInputPlugins { get; private set; } |