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 681 by william, Mon Jun 17 08:03:34 2013 UTC vs.
Revision 682 by william, Mon Jun 17 08:27:34 2013 UTC

# Line 105 | Line 105 | namespace RomCheater.PluginFramework.Cor
105          }
106          private IConfigPlugin GetGenericConfigPlugin()
107          {
108 <            foreach (IConfigPlugin c in LoadedConfigPlugins) { if (c.ID.ToString().ToLower() == "478e225b-c3e8-9280-57ca-384b884fc4cc".ToLower()) { return c; } }
108 >            foreach (IConfigPlugin c in LoadedConfigPlugins) { if (c.IsGenericPlugin || c.IsNullPlugin) { return c; } }
109              return null;
110          }
111          public IInputPlugin GetInputPlugin(string t)
# Line 115 | Line 115 | namespace RomCheater.PluginFramework.Cor
115          }
116          private IInputPlugin GetGenericInputPlugin()
117          {
118 <            foreach (IInputPlugin c in LoadedInputPlugins) { }
118 >            foreach (IInputPlugin c in LoadedInputPlugins) { if (c.IsGenericPlugin || c.IsNullPlugin) { return c; } }
119              return null;
120          }
121          public IWindowPlugin GetWindowPlugin(string t)
# Line 125 | Line 125 | namespace RomCheater.PluginFramework.Cor
125          }
126          private IWindowPlugin GetGenericWindowPlugin()
127          {
128 <            foreach (IWindowPlugin c in LoadedWindowPlugins) { }
128 >            foreach (IWindowPlugin c in LoadedWindowPlugins) { if (c.IsGenericPlugin || c.IsNullPlugin) { return c; } }
129              return null;
130          }
131          private IUserControlPlugin GetUserControlPlugin()
132          {
133 <            foreach (IUserControlPlugin c in LoadedUserControlPlugins) { }
133 >            foreach (IUserControlPlugin c in LoadedUserControlPlugins) { if (c.IsGenericPlugin || c.IsNullPlugin) { return c; } }
134              return null;
135          }
136          #endregion

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines