Don't remove params on not ob'd methods, or ctors

This commit is contained in:
Adam
2015-07-26 19:01:43 -04:00
parent 30e29a52ab
commit 35fcfc0645
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ public class Deob
new UnusedBlocks().run(group);
// remove unused parameters
//new UnusedParameters().run(group);
new UnusedParameters().run(group);
// remove jump obfuscation
//new Jumps().run(group);

View File

@@ -209,7 +209,7 @@ public class UnusedParameters implements Deobfuscator
{
for (Method m : cf.getMethods().getMethods())
{
if (done.contains(m))
if (done.contains(m) || m.getName().length() > 2) // ctors not uniquely renamed. overriding jre methods can't just remove a parameter
continue;
int offset = m.isStatic() ? 0 : 1;