mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-20 07:56:50 +00:00
feat: modify plugin loading process
This commit is contained in:
parent
04c4557528
commit
aaa5b0532b
14 changed files with 147 additions and 189 deletions
|
|
@ -18,7 +18,7 @@ namespace PepperDash.Essentials
|
|||
{
|
||||
var assembly = Assembly.GetExecutingAssembly();
|
||||
|
||||
PluginLoader.SetEssentialsAssembly(assembly.GetName().Name, assembly);
|
||||
PluginLoader.AddLoadedAssembly(assembly.GetName().Name, assembly);
|
||||
|
||||
var types = assembly.GetTypes().Where(t => typeof(IDeviceFactory).IsAssignableFrom(t) && !t.IsInterface && !t.IsAbstract);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue