diff options
| author | 2014-08-17 10:56:17 -0400 | |
|---|---|---|
| committer | 2014-08-17 10:56:17 -0400 | |
| commit | 6c4440ac1133bfaa7871d1049d174528a289ef30 (patch) | |
| tree | fe1142b285c5e43dbd3afe8dd3eb0189f027c6a6 /src/cuchaz/enigma/gui/GuiController.java | |
| parent | trying to get inner/anonymous classes working... I have a working heuristic i... (diff) | |
| download | enigma-fork-6c4440ac1133bfaa7871d1049d174528a289ef30.tar.gz enigma-fork-6c4440ac1133bfaa7871d1049d174528a289ef30.tar.xz enigma-fork-6c4440ac1133bfaa7871d1049d174528a289ef30.zip | |
added support for automatic reconstruction of inner and anonymous classes
also added class to restore bridge method flags taken out by the obfuscator
Diffstat (limited to 'src/cuchaz/enigma/gui/GuiController.java')
| -rw-r--r-- | src/cuchaz/enigma/gui/GuiController.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cuchaz/enigma/gui/GuiController.java b/src/cuchaz/enigma/gui/GuiController.java index 534b0cc..ffeb99a 100644 --- a/src/cuchaz/enigma/gui/GuiController.java +++ b/src/cuchaz/enigma/gui/GuiController.java | |||
| @@ -31,6 +31,7 @@ import cuchaz.enigma.mapping.ConstructorEntry; | |||
| 31 | import cuchaz.enigma.mapping.Entry; | 31 | import cuchaz.enigma.mapping.Entry; |
| 32 | import cuchaz.enigma.mapping.EntryPair; | 32 | import cuchaz.enigma.mapping.EntryPair; |
| 33 | import cuchaz.enigma.mapping.FieldEntry; | 33 | import cuchaz.enigma.mapping.FieldEntry; |
| 34 | import cuchaz.enigma.mapping.MappingParseException; | ||
| 34 | import cuchaz.enigma.mapping.MappingsReader; | 35 | import cuchaz.enigma.mapping.MappingsReader; |
| 35 | import cuchaz.enigma.mapping.MappingsWriter; | 36 | import cuchaz.enigma.mapping.MappingsWriter; |
| 36 | import cuchaz.enigma.mapping.MethodEntry; | 37 | import cuchaz.enigma.mapping.MethodEntry; |
| @@ -75,7 +76,7 @@ public class GuiController | |||
| 75 | } | 76 | } |
| 76 | 77 | ||
| 77 | public void openMappings( File file ) | 78 | public void openMappings( File file ) |
| 78 | throws IOException | 79 | throws IOException, MappingParseException |
| 79 | { | 80 | { |
| 80 | FileReader in = new FileReader( file ); | 81 | FileReader in = new FileReader( file ); |
| 81 | m_deobfuscator.setMappings( new MappingsReader().read( in ) ); | 82 | m_deobfuscator.setMappings( new MappingsReader().read( in ) ); |
| @@ -135,7 +136,7 @@ public class GuiController | |||
| 135 | 136 | ||
| 136 | public boolean entryIsObfuscatedIdenfitier( Entry deobfEntry ) | 137 | public boolean entryIsObfuscatedIdenfitier( Entry deobfEntry ) |
| 137 | { | 138 | { |
| 138 | return m_deobfuscator.entryIsObfuscatedIdenfitier( m_deobfuscator.obfuscateEntry( deobfEntry ) ); | 139 | return m_deobfuscator.isObfuscatedIdentifier( m_deobfuscator.obfuscateEntry( deobfEntry ) ); |
| 139 | } | 140 | } |
| 140 | 141 | ||
| 141 | public ClassInheritanceTreeNode getClassInheritance( ClassEntry obfClassEntry ) | 142 | public ClassInheritanceTreeNode getClassInheritance( ClassEntry obfClassEntry ) |