Explorar o código

TypeLoader: don't write error when a native DLL is found

ghorsington %!s(int64=4) %!d(string=hai) anos
pai
achega
4d7e5cac2b
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      BepInEx/Bootstrap/TypeLoader.cs

+ 4 - 0
BepInEx/Bootstrap/TypeLoader.cs

@@ -126,6 +126,10 @@ namespace BepInEx.Bootstrap
 					result[dll] = matches;
 					ass.Dispose();
 				}
+				catch (BadImageFormatException e)
+				{
+					Logger.LogDebug($"Skipping loading {dll} because it's not a valid .NET assembly. Full error: {e}");
+				}
 				catch (Exception e)
 				{
 					Logger.LogError(e.ToString());