From 4e390742a5bcc38569cae0fb968034512ec0f996 Mon Sep 17 00:00:00 2001 From: d3agle Date: Tue, 19 May 2015 18:06:10 -0500 Subject: [PATCH] IDisposable TypeloadException fix Ignore renaming types that implement interfaces. I hope this is the correct way to do this, I couldn't find a way to find a specific interface to exclude from obfuscation --- Server/Core/Build/Renamer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/Core/Build/Renamer.cs b/Server/Core/Build/Renamer.cs index 51f30cbb..271a2eec 100644 --- a/Server/Core/Build/Renamer.cs +++ b/Server/Core/Build/Renamer.cs @@ -61,7 +61,7 @@ private void RenameInType(TypeDefinition typeDef) if (typeDef.Namespace.StartsWith("My") || typeDef.Namespace.StartsWith("xClient.Core.Packets") || typeDef.Namespace == "xClient.Core" || typeDef.Namespace == "xClient.Core.Elevation" || typeDef.Namespace == "xClient.Core.Compression" || typeDef.Namespace.StartsWith("ProtoBuf") || - typeDef.Namespace.Contains("xClient.Core.ReverseProxy")) + typeDef.Namespace.Contains("xClient.Core.ReverseProxy") || typeDef.HasInterfaces) return; TypeOverloader.GiveName(typeDef);