diff --git a/Confuser.Runtime/Compressor.cs b/Confuser.Runtime/Compressor.cs index 6b24d9b..fa28473 100644 --- a/Confuser.Runtime/Compressor.cs +++ b/Confuser.Runtime/Compressor.cs @@ -58,12 +58,13 @@ namespace Confuser.Runtime { Array.Clear(b, 0, b.Length); h.Free(); Array.Clear(q, 0, q.Length); - // For some reasons, reflection on Assembly would not discover the types unless GetTypes is called. - m.GetTypes(); key = n.ResolveSignature(Mutation.KeyI2); AppDomain.CurrentDomain.AssemblyResolve += Resolve; + // For some reasons, reflection on Assembly would not discover the types unless GetTypes is called. + m.GetTypes(); + MethodBase e = m.ResolveMethod(key[0] | (key[1] << 8) | (key[2] << 16) | (key[3] << 24)); var g = new object[e.GetParameters().Length]; if (g.Length != 0)