void Accept(Overlay overlay, bool always) { string plugin = overlay.Metadata; if (always && !accepted.HasEntry(plugin)) { accepted.AddEntry(plugin); } string dir = Path.Combine(Program.AppDirectory, "plugins"); Load(Path.Combine(dir, plugin + ".dll"), true); }
void Accept(WarningScreen warning, bool always) { string plugin = (string)warning.Metadata; if (always && !accepted.HasEntry(plugin)) { accepted.AddEntry(plugin); } string dir = Path.Combine(Program.AppDirectory, "plugins"); Load(Path.Combine(dir, plugin + ".dll"), true); }