mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 14:44:24 +00:00
Update PluginLoader.cs
This commit is contained in:
parent
cc34d40120
commit
b5b57ffa90
1 changed files with 5 additions and 0 deletions
|
@ -63,6 +63,11 @@ namespace PKHeX.WinForms
|
|||
{
|
||||
try
|
||||
{
|
||||
// Handle Costura merged plugin dll's; need to Attach for them to correctly retrieve their dependencies.
|
||||
var assemblyLoaderType = z.GetType("Costura.AssemblyLoader", false);
|
||||
var attachMethod = assemblyLoaderType?.GetMethod("Attach", BindingFlags.Static | BindingFlags.Public);
|
||||
attachMethod?.Invoke(null, Array.Empty<object>());
|
||||
|
||||
var types = z.GetTypes();
|
||||
return types.Where(type => IsTypePlugin(type, pluginType));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue