protected void AddDisabledPlugin(string folder) { NotLoadedPlugin plugin = new NotLoadedPlugin(); plugin.FriendlyName = FileManager.RemovePath(folder); if (plugin.FriendlyName.EndsWith("/") || plugin.FriendlyName.EndsWith("\\")) { plugin.FriendlyName = plugin.FriendlyName.Substring(0, plugin.FriendlyName.Length - 1); } PluginContainer container = new PluginContainer(plugin); container.AssemblyLocation = folder + "/unknown.dll"; mPluginContainers.Add(plugin, container); container.IsEnabled = false; // don't do any startup or anything }
protected void AddDisabledPlugin(string folder) { NotLoadedPlugin plugin = new NotLoadedPlugin(); plugin.FriendlyName = FileManager.RemovePath(folder); if(plugin.FriendlyName.EndsWith("/") || plugin.FriendlyName.EndsWith("\\")) { plugin.FriendlyName = plugin.FriendlyName.Substring(0, plugin.FriendlyName.Length - 1); } PluginContainer container = new PluginContainer(plugin); container.AssemblyLocation = folder + "/unknown.dll"; mPluginContainers.Add(plugin, container); container.IsEnabled = false; // don't do any startup or anything }