From edd92dfb4bb709f3fedb3dbc0634cbc7bc451b91 Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Sun, 14 Apr 2019 21:28:02 -0500 Subject: [PATCH] Cleaned up old commented code --- IPA.Loader/Loader/PluginManager.cs | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/IPA.Loader/Loader/PluginManager.cs b/IPA.Loader/Loader/PluginManager.cs index 4ee5297e..f7e56e2b 100644 --- a/IPA.Loader/Loader/PluginManager.cs +++ b/IPA.Loader/Loader/PluginManager.cs @@ -171,24 +171,6 @@ namespace IPA.Loader #endregion } - /*var selfPlugin = new PluginInfo - { - Filename = Path.Combine(BeatSaber.InstallPath, "IPA.exe"), - Plugin = SelfPlugin.Instance - }; - selfPlugin.Metadata.Manifest = new PluginManifest - { - Author = "DaNike", - Features = new string[0], - Description = "", - Version = new SemVer.Version(SelfConfig.IPA_Version), - GameVersion = BeatSaber.GameVersion, - Id = "beatsaber-ipa-reloaded" - }; - selfPlugin.Metadata.File = new FileInfo(Path.Combine(BeatSaber.InstallPath, "IPA.exe")); - - _bsPlugins.Add(selfPlugin);*/ - //Load copied plugins string[] copiedPlugins = Directory.GetFiles(cacheDir, "*.dll"); foreach (string s in copiedPlugins) @@ -230,14 +212,6 @@ namespace IPA.Loader try { T pluginInstance = Activator.CreateInstance(t) as T; - /*string[] filter = null; - - if (typeof(T) == typeof(IPlugin) && pluginInstance is IEnhancedPlugin enhancedPlugin) - filter = enhancedPlugin.Filter; - else if (pluginInstance is IGenericEnhancedPlugin plugin) - filter = plugin.Filter;*/ - - //if (filter == null || filter.Contains(exeName, StringComparer.OrdinalIgnoreCase)) return pluginInstance; } catch (Exception e)