diff options
| author | 2014-08-26 00:27:44 -0400 | |
|---|---|---|
| committer | 2014-08-26 00:27:44 -0400 | |
| commit | 5f44aac70f59898197c2a7625b74f901c3b31106 (patch) | |
| tree | 7d2cc2e48201c92867786793966f356810b464fa /src/cuchaz/enigma/mapping/Renamer.java | |
| parent | wrote CheckCastIterator to try to do generic type inference. It's too hard to... (diff) | |
| download | enigma-fork-5f44aac70f59898197c2a7625b74f901c3b31106.tar.gz enigma-fork-5f44aac70f59898197c2a7625b74f901c3b31106.tar.xz enigma-fork-5f44aac70f59898197c2a7625b74f901c3b31106.zip | |
implemented proper support for interfaces
Diffstat (limited to 'src/cuchaz/enigma/mapping/Renamer.java')
| -rw-r--r-- | src/cuchaz/enigma/mapping/Renamer.java | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/src/cuchaz/enigma/mapping/Renamer.java b/src/cuchaz/enigma/mapping/Renamer.java index 0bb8dc1..79cbd30 100644 --- a/src/cuchaz/enigma/mapping/Renamer.java +++ b/src/cuchaz/enigma/mapping/Renamer.java | |||
| @@ -16,7 +16,6 @@ import java.io.OutputStream; | |||
| 16 | import java.util.zip.GZIPOutputStream; | 16 | import java.util.zip.GZIPOutputStream; |
| 17 | 17 | ||
| 18 | import cuchaz.enigma.analysis.JarIndex; | 18 | import cuchaz.enigma.analysis.JarIndex; |
| 19 | import cuchaz.enigma.analysis.MethodInheritanceTreeNode; | ||
| 20 | 19 | ||
| 21 | public class Renamer | 20 | public class Renamer |
| 22 | { | 21 | { |
| @@ -57,25 +56,9 @@ public class Renamer | |||
| 57 | 56 | ||
| 58 | public void setMethodTreeName( MethodEntry obf, String deobfName ) | 57 | public void setMethodTreeName( MethodEntry obf, String deobfName ) |
| 59 | { | 58 | { |
| 60 | // get the method tree | 59 | for( MethodEntry entry : m_index.getRelatedMethodImplementations( obf ) ) |
| 61 | setMethodTreeName( | ||
| 62 | m_index.getMethodInheritance( m_mappings.getTranslator( m_index.getAncestries(), TranslationDirection.Deobfuscating ), obf ), | ||
| 63 | deobfName | ||
| 64 | ); | ||
| 65 | } | ||
| 66 | |||
| 67 | private void setMethodTreeName( MethodInheritanceTreeNode node, String deobfName ) | ||
| 68 | { | ||
| 69 | if( node.isImplemented() ) | ||
| 70 | { | ||
| 71 | // apply the name here | ||
| 72 | setMethodName( node.getMethodEntry(), deobfName ); | ||
| 73 | } | ||
| 74 | |||
| 75 | // recurse | ||
| 76 | for( int i=0; i<node.getChildCount(); i++ ) | ||
| 77 | { | 60 | { |
| 78 | setMethodTreeName( (MethodInheritanceTreeNode)node.getChildAt( i ), deobfName ); | 61 | setMethodName( entry, deobfName ); |
| 79 | } | 62 | } |
| 80 | } | 63 | } |
| 81 | 64 | ||