From 75eb289de3d8742c8ba4947b341355873154bbcc Mon Sep 17 00:00:00 2001 From: gegy1000 Date: Mon, 11 Feb 2019 19:51:07 +0200 Subject: Disable remapping of local variables until proper support is implemented --- src/main/java/cuchaz/enigma/Deobfuscator.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/java/cuchaz/enigma/Deobfuscator.java') diff --git a/src/main/java/cuchaz/enigma/Deobfuscator.java b/src/main/java/cuchaz/enigma/Deobfuscator.java index ef452b0..843c761 100644 --- a/src/main/java/cuchaz/enigma/Deobfuscator.java +++ b/src/main/java/cuchaz/enigma/Deobfuscator.java @@ -32,6 +32,7 @@ import cuchaz.enigma.translation.mapping.tree.DeltaTrackingTree; import cuchaz.enigma.translation.mapping.tree.EntryTree; import cuchaz.enigma.translation.representation.entry.ClassEntry; import cuchaz.enigma.translation.representation.entry.Entry; +import cuchaz.enigma.translation.representation.entry.LocalVariableEntry; import cuchaz.enigma.translation.representation.entry.MethodEntry; import org.objectweb.asm.ClassVisitor; import org.objectweb.asm.ClassWriter; @@ -352,6 +353,8 @@ public class Deobfuscator { } else if (name.equals("wait") && sig.equals("(JI)V")) { return false; } + } else if (obfEntry instanceof LocalVariableEntry && !((LocalVariableEntry) obfEntry).isArgument()) { + return false; } return this.jarIndex.getEntryIndex().hasEntry(obfEntry); -- cgit v1.2.3