/[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

revision 86 by william, Wed May 9 19:41:06 2012 UTC revision 87 by william, Wed May 9 19:51:42 2012 UTC
# Line 64  namespace RomCheater.PluginFramework.Cor Line 64  namespace RomCheater.PluginFramework.Cor
64          public List<IConfigPlugin> LoadedConfigPlugins { get; private set; }          public List<IConfigPlugin> LoadedConfigPlugins { get; private set; }
65          public List<IInputPlugin> LoadedInputPlugins { get; private set; }          public List<IInputPlugin> LoadedInputPlugins { get; private set; }
66          public List<IWindowPlugin> LoadedWindowPlugins { get; private set; }          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          #endregion
85    
86          private void GetConfigPluginsFromDll(FileInfo dll)          private void GetConfigPluginsFromDll(FileInfo dll)

Legend:
Removed from v.86  
changed lines
  Added in v.87

  ViewVC Help
Powered by ViewVC 1.1.22