This commit is contained in:
Adam
2015-08-23 20:29:23 -04:00
parent 5561478ec8
commit 4143a59d9d
3 changed files with 2 additions and 30 deletions

View File

@@ -102,15 +102,7 @@ public class GetField extends Instruction implements GetFieldInstruction
@Override @Override
public void renameField(net.runelite.deob.Field f, Field newField) public void renameField(net.runelite.deob.Field f, Field newField)
{ {
Class clazz = field.getClassEntry(); net.runelite.deob.Field f2 = getMyField();
NameAndType nat = field.getNameAndType();
ClassFile cf = this.getInstructions().getCode().getAttributes().getClassFile().getGroup().findClass(clazz.getName());
if (cf == null)
return;
net.runelite.deob.Field f2 = cf.findFieldDeep(nat);
assert f2 != null;
if (f2 == f) if (f2 == f)
field = newField; field = newField;

View File

@@ -99,15 +99,7 @@ public class GetStatic extends Instruction implements GetFieldInstruction
@Override @Override
public void renameField(net.runelite.deob.Field f, Field newField) public void renameField(net.runelite.deob.Field f, Field newField)
{ {
Class clazz = field.getClassEntry(); net.runelite.deob.Field f2 = getMyField();
NameAndType nat = field.getNameAndType();
ClassFile cf = this.getInstructions().getCode().getAttributes().getClassFile().getGroup().findClass(clazz.getName());
if (cf == null)
return;
net.runelite.deob.Field f2 = cf.findFieldDeep(nat);
assert f2 != null;
if (f2 == f) if (f2 == f)
{ {

View File

@@ -158,18 +158,6 @@ public class ModArith implements Deobfuscator
return fields; return fields;
} }
// private void replace(Pair pair)
// {
// // do replacements with pair
//
// for (Frame frame : execution.processedFrames)
// {
// for (InstructionContext ctx : frame.getInstructions())
// {
// }
// }
// }
@Override @Override
public void run(ClassGroup group) public void run(ClassGroup group)
{ {