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 86 by william, Wed May 9 19:41:06 2012 UTC vs.
Revision 87 by william, Wed May 9 19:51:42 2012 UTC

# Line 64 | Line 64 | namespace RomCheater.PluginFramework.Cor
64          public List<IConfigPlugin> LoadedConfigPlugins { get; private set; }
65          public List<IInputPlugin> LoadedInputPlugins { get; private set; }
66          public List<IWindowPlugin> LoadedWindowPlugins { get; private set; }
67 +
68 +        public IConfigPlugin GetConfigPlugin(string t)
69 +        {
70 +            foreach (IConfigPlugin c in LoadedConfigPlugins) { if (c.ToString().ToLower() == t.ToLower()) { return c; } }
71 +            return null;
72 +        }
73 +        public IInputPlugin GetInputPlugin(string t)
74 +        {
75 +            foreach (IInputPlugin c in LoadedInputPlugins) { if (c.ToString().ToLower() == t.ToLower()) { return c; } }
76 +            return null;
77 +        }
78 +        public IWindowPlugin GetWindowPlugin(string t)
79 +        {
80 +            foreach (IWindowPlugin c in LoadedWindowPlugins) { if (c.ToString().ToLower() == t.ToLower()) { return c; } }
81 +            return null;
82 +        }
83 +
84          #endregion
85  
86          private void GetConfigPluginsFromDll(FileInfo dll)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines