Fix #238: Don't add nonexistent folders to cecil platform assemblies

This commit is contained in:
ghorsington committed 2021-04-25 20:19:07 +03:00
1 parent 78e0538755
commit f9a55e5b3d
1 file changed
+2
+2
View File
@@ -362,6 +362,8 @@ namespace BepInEx
internal static void AddCecilPlatformAssemblies(this AppDomain appDomain, string assemblyDir)
{
if (!Directory.Exists(assemblyDir))
return;
// Cecil 0.11 requires one to manually set up list of trusted assemblies for assembly resolving
var curTrusted = appDomain.GetData(TRUSTED_PLATFORM_ASSEMBLIES) as string;
var addTrusted = string.Join(Path.PathSeparator.ToString(),