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 87 by william, Wed May 9 19:51:42 2012 UTC vs.
Revision 148 by william, Sun May 27 23:33:54 2012 UTC

--- trunk/RomCheater.PluginFramework/Core/PluginLoader.cs	2012/05/09 19:51:42	87
+++ trunk/RomCheater.PluginFramework/Core/PluginLoader.cs	2012/05/27 23:33:54	148
@@ -68,19 +68,33 @@ namespace RomCheater.PluginFramework.Cor
         public IConfigPlugin GetConfigPlugin(string t)
         {
             foreach (IConfigPlugin c in LoadedConfigPlugins) { if (c.ToString().ToLower() == t.ToLower()) { return c; } }
+            return GetGenericConfigPlugin();
+        }
+        private IConfigPlugin GetGenericConfigPlugin()
+        {
+            foreach (IConfigPlugin c in LoadedConfigPlugins) { if (c.ID.ToString().ToLower() == "478e225b-c3e8-9280-57ca-384b884fc4cc".ToLower()) { return c; } }
             return null;
         }
         public IInputPlugin GetInputPlugin(string t)
         {
             foreach (IInputPlugin c in LoadedInputPlugins) { if (c.ToString().ToLower() == t.ToLower()) { return c; } }
+            return GetGenericInputPlugin();
+        }
+        private IInputPlugin GetGenericInputPlugin()
+        {
+            foreach (IInputPlugin c in LoadedInputPlugins) { }
             return null;
         }
         public IWindowPlugin GetWindowPlugin(string t)
         {
             foreach (IWindowPlugin c in LoadedWindowPlugins) { if (c.ToString().ToLower() == t.ToLower()) { return c; } }
+            return GetGenericWindowPlugin();
+        }
+        private IWindowPlugin GetGenericWindowPlugin()
+        {
+            foreach (IWindowPlugin c in LoadedWindowPlugins) { }
             return null;
         }
-
         #endregion
 
         private void GetConfigPluginsFromDll(FileInfo dll)