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

Rebase of 4d7e5ca
This commit is contained in:
Bepis committed 2020-11-06 11:54:41 +11:00
1 parent 43cf41d1e8
commit 53fdd99cbe
1 file changed
+4
+4
View File
@@ -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());