mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-23 04:53:09 +00:00
26 lines
625 B
C#
26 lines
625 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using PluginContracts;
|
|
|
|
namespace Toolbox.Library
|
|
{
|
|
public static class GenericPluginLoader
|
|
{
|
|
public static Dictionary<string, IPlugin> _Plugins;
|
|
|
|
public static void LoadPlugin()
|
|
{
|
|
_Plugins = new Dictionary<string, IPlugin>();
|
|
|
|
ICollection<IPlugin> plugins = PluginLoader.LoadPlugins();
|
|
foreach (var item in plugins)
|
|
{
|
|
_Plugins.Add(item.Name, item);
|
|
}
|
|
plugins.Clear();
|
|
}
|
|
}
|
|
}
|