소스 검색

TypeLoader: don't write error when a native DLL is found
Rebase of 4d7e5ca

Bepis 4 년 전
부모
커밋
53fdd99cbe
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      BepInEx.Core/Bootstrap/TypeLoader.cs

+ 4 - 0
BepInEx.Core/Bootstrap/TypeLoader.cs

@@ -141,6 +141,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());