/[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	2013/06/17 08:03:34	680
+++ trunk/RomCheater.PluginFramework/Core/PluginLoader.cs	2013/06/17 08:27:34	682
@@ -105,7 +105,7 @@
         }
         private IConfigPlugin GetGenericConfigPlugin()
         {
-            foreach (IConfigPlugin c in LoadedConfigPlugins) { if (c.ID.ToString().ToLower() == "478e225b-c3e8-9280-57ca-384b884fc4cc".ToLower()) { return c; } }
+            foreach (IConfigPlugin c in LoadedConfigPlugins) { if (c.IsGenericPlugin || c.IsNullPlugin) { return c; } }
             return null;
         }
         public IInputPlugin GetInputPlugin(string t)
@@ -115,7 +115,7 @@
         }
         private IInputPlugin GetGenericInputPlugin()
         {
-            foreach (IInputPlugin c in LoadedInputPlugins) { }
+            foreach (IInputPlugin c in LoadedInputPlugins) { if (c.IsGenericPlugin || c.IsNullPlugin) { return c; } }
             return null;
         }
         public IWindowPlugin GetWindowPlugin(string t)
@@ -125,12 +125,12 @@
         }
         private IWindowPlugin GetGenericWindowPlugin()
         {
-            foreach (IWindowPlugin c in LoadedWindowPlugins) { }
+            foreach (IWindowPlugin c in LoadedWindowPlugins) { if (c.IsGenericPlugin || c.IsNullPlugin) { return c; } }
             return null;
         }
         private IUserControlPlugin GetUserControlPlugin()
         {
-            foreach (IUserControlPlugin c in LoadedUserControlPlugins) { }
+            foreach (IUserControlPlugin c in LoadedUserControlPlugins) { if (c.IsGenericPlugin || c.IsNullPlugin) { return c; } }
             return null;
         }
         #endregion

 

  ViewVC Help
Powered by ViewVC 1.1.22