diff --git a/ShiftOS_TheReturn/AppLauncherDaemon.cs b/ShiftOS_TheReturn/AppLauncherDaemon.cs index 6df2f41..9a0754b 100644 --- a/ShiftOS_TheReturn/AppLauncherDaemon.cs +++ b/ShiftOS_TheReturn/AppLauncherDaemon.cs @@ -53,10 +53,12 @@ namespace ShiftOS.Engine { if (asmExec.EndsWith(".dll") | asmExec.EndsWith(".exe")) { - var asm = Assembly.LoadFrom(asmExec); - - if (asm.GetReferencedAssemblies().Contains("ShiftOS.Engine") || asm.FullName.Contains("ShiftOS.Engine")) + try { + var asm = Assembly.LoadFrom(asmExec); + + if (asm.GetReferencedAssemblies().Contains("ShiftOS.Engine") || asm.FullName.Contains("ShiftOS.Engine")) + { foreach (var type in asm.GetTypes()) { if (type.GetInterfaces().Contains(typeof(IShiftOSWindow))) @@ -74,6 +76,11 @@ namespace ShiftOS.Engine } } } + } + } + catch + { + } } }