diff options
| author | 2019-11-22 15:40:50 -0500 | |
|---|---|---|
| committer | 2019-11-22 20:40:50 +0000 | |
| commit | 37cafdb5a837cbe29e4cc9a34737e24f496bc94f (patch) | |
| tree | 413ec17d5593984465ffc6005f3fa3c096d7225f /src/main/java/cuchaz/enigma/EnigmaProject.java | |
| parent | Tweak runemoro's stats generator to be compatible with multiple services (#178) (diff) | |
| download | enigma-fork-37cafdb5a837cbe29e4cc9a34737e24f496bc94f.tar.gz enigma-fork-37cafdb5a837cbe29e4cc9a34737e24f496bc94f.tar.xz enigma-fork-37cafdb5a837cbe29e4cc9a34737e24f496bc94f.zip | |
Correctly decompile bridges, and add command to add bridges to mappings (#180)
Diffstat (limited to 'src/main/java/cuchaz/enigma/EnigmaProject.java')
| -rw-r--r-- | src/main/java/cuchaz/enigma/EnigmaProject.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/cuchaz/enigma/EnigmaProject.java b/src/main/java/cuchaz/enigma/EnigmaProject.java index 47a3790..2a7ca98 100644 --- a/src/main/java/cuchaz/enigma/EnigmaProject.java +++ b/src/main/java/cuchaz/enigma/EnigmaProject.java | |||
| @@ -158,7 +158,7 @@ public class EnigmaProject { | |||
| 158 | ClassNode node = classCache.getClassNode(entry.getFullName()); | 158 | ClassNode node = classCache.getClassNode(entry.getFullName()); |
| 159 | if (node != null) { | 159 | if (node != null) { |
| 160 | ClassNode translatedNode = new ClassNode(); | 160 | ClassNode translatedNode = new ClassNode(); |
| 161 | node.accept(new TranslationClassVisitor(deobfuscator, Opcodes.ASM5, translatedNode)); | 161 | node.accept(new TranslationClassVisitor(deobfuscator, Opcodes.ASM5, new SourceFixVisitor(Opcodes.ASM5, translatedNode, jarIndex))); |
| 162 | return translatedNode; | 162 | return translatedNode; |
| 163 | } | 163 | } |
| 164 | 164 | ||
| @@ -209,7 +209,6 @@ public class EnigmaProject { | |||
| 209 | 209 | ||
| 210 | //create a common instance outside the loop as mappings shouldn't be changing while this is happening | 210 | //create a common instance outside the loop as mappings shouldn't be changing while this is happening |
| 211 | CompiledSourceTypeLoader typeLoader = new CompiledSourceTypeLoader(this.compiled::get); | 211 | CompiledSourceTypeLoader typeLoader = new CompiledSourceTypeLoader(this.compiled::get); |
| 212 | typeLoader.addVisitor(visitor -> new SourceFixVisitor(Opcodes.ASM5, visitor, jarIndex)); | ||
| 213 | 212 | ||
| 214 | //synchronized to make sure the parallelStream doesn't CME with the cache | 213 | //synchronized to make sure the parallelStream doesn't CME with the cache |
| 215 | ITypeLoader synchronizedTypeLoader = new SynchronizedTypeLoader(typeLoader); | 214 | ITypeLoader synchronizedTypeLoader = new SynchronizedTypeLoader(typeLoader); |