Beispiel #1
0
        public Dictionary <string, VgcApis.IPlugin> SearchForPlugins()
        {
            // Original design of plugins would load dll files from file system.
            // That is why loading logic looks so complex.
            var pluginList = new Dictionary <string, VgcApis.IPlugin>();
            var plugins    = new VgcApis.IPlugin[] {
#if !V2RAYGCON_LITE
                new Luna.Luna(),
#endif

                new Pacman.Pacman(),

#if !V2RAYGCON_LITE
                // Many thanks to windows defender
                new ProxySetter.ProxySetter(),
#endif

                new Statistics.Statistics(),
            };

            foreach (var plugin in plugins)
            {
                pluginList.Add(plugin.Name, plugin);
            }
            return(pluginList);
        }
Beispiel #2
0
        public Dictionary <string, VgcApis.IPlugin> SearchForPlugins()
        {
            var pluginList = new Dictionary <string, VgcApis.IPlugin>();

            var plugins = new VgcApis.IPlugin[] {
                new Pacman.Pacman(),
#if !DISABLE_PROXY_SETTER
                new ProxySetter.ProxySetter(),
#endif
            };

            foreach (var plugin in plugins)
            {
                pluginList.Add(plugin.Name, plugin);
            }
            return(pluginList);
        }