Don't remove params on not ob'd methods, or ctors
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user