Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }