Browse Source

Improve plugin detection to allow inheritance

pull/11/head
Quit 6 years ago
parent
commit
f6eeb843b9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      IllusionInjector/PluginManager.cs

+ 1
- 1
IllusionInjector/PluginManager.cs View File

@@ -110,7 +110,7 @@ namespace IllusionInjector

private static bool IsValidPlugin(Type type)
{
return type.GetInterface("IPlugin") != null
return typeof(IPlugin).IsAssignableFrom(type)
&& !type.IsAbstract
&& !type.IsInterface
&& type.GetConstructor(Type.EmptyTypes) != null;


Loading…
Cancel
Save