/[RomCheater]/trunk/RomCheater.PluginFramework/Core/PluginLoader.cs
ViewVC logotype

Diff of /trunk/RomCheater.PluginFramework/Core/PluginLoader.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- 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.Text;
 using RomCheater.PluginFramework.Interfaces;
 using RomCheater.Logging;
+using System.IO;
 
 namespace RomCheater.PluginFramework.Core
 {
@@ -20,7 +21,17 @@
         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; }

 

  ViewVC Help
Powered by ViewVC 1.1.22