Fix enumerating drivers

This commit is contained in:
tznind
2024-11-24 11:14:07 +00:00
parent 90d492716a
commit 1d636959bc

View File

@@ -193,7 +193,7 @@ public static partial class Application // Initialization (Init/Shutdown)
{
foreach (Type? type in asm.GetTypes ())
{
if (type.IsSubclassOf (typeof (IConsoleDriver)) && !type.IsAbstract)
if (typeof (IConsoleDriver).IsAssignableFrom (type) && !type.IsAbstract && type.IsClass)
{
driverTypes.Add (type);
}