mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Fix #238: Don't add nonexistent folders to cecil platform assemblies
This commit is contained in:
1 parent
78e0538755
commit
f9a55e5b3d
1 file changed
+2
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user