aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ShiftOS_TheReturn/AppLauncherDaemon.cs13
1 files changed, 10 insertions, 3 deletions
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
+ {
+
}
}
}