--- trunk/RomCheater.PluginFramework/Core/PluginLoader.cs 2012/05/09 19:41:06 86 +++ trunk/RomCheater.PluginFramework/Core/PluginLoader.cs 2012/05/09 19:51:42 87 @@ -64,6 +64,23 @@ namespace RomCheater.PluginFramework.Cor public List<IConfigPlugin> LoadedConfigPlugins { get; private set; } public List<IInputPlugin> LoadedInputPlugins { get; private set; } public List<IWindowPlugin> LoadedWindowPlugins { get; private set; } + + public IConfigPlugin GetConfigPlugin(string t) + { + foreach (IConfigPlugin c in LoadedConfigPlugins) { if (c.ToString().ToLower() == t.ToLower()) { return c; } } + return null; + } + public IInputPlugin GetInputPlugin(string t) + { + foreach (IInputPlugin c in LoadedInputPlugins) { if (c.ToString().ToLower() == t.ToLower()) { return c; } } + return null; + } + public IWindowPlugin GetWindowPlugin(string t) + { + foreach (IWindowPlugin c in LoadedWindowPlugins) { if (c.ToString().ToLower() == t.ToLower()) { return c; } } + return null; + } + #endregion private void GetConfigPluginsFromDll(FileInfo dll) |