ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater.PluginFramework/Core/PluginLoader.cs
(Generate patch)

Comparing trunk/RomCheater.PluginFramework/Core/PluginLoader.cs (file contents):
Revision 83 by william, Wed May 9 17:48:15 2012 UTC vs.
Revision 84 by william, Wed May 9 17:55:55 2012 UTC

--- 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; }