AnErrupTion/LoGiC.NET

Protected files are massive

Simon-Davies opened this issue · 2 comments

After the recent changes protected files are massive. A 7kB file after protection is over 2MB.

I'm already aware of that, and the solution would be to remove the junk defs or to make less of them. I'll find a way to balance it in the future, for the moment you could edit the obfuscator to turn down the junk defs a bit.

I fixed the problem by removing this code:

            // Add junk types
            for (int i = 0; i < MemberRenamer.StringLength(); i++)
            {
                TypeDef type = new TypeDefUser(String(MemberRenamer.StringLength())) { Namespace = string.Empty };
                Program.Module.Types.Add(type);

                Amount++;
            }