Update enigma

dev/0.11
gegy1000 2018-06-23 16:03:43 +02:00
parent e21625b660
commit d73bcc926d
2 changed files with 2 additions and 18 deletions

View File

@ -54,7 +54,7 @@ dependencies {
transitive = false
}
shade 'org.ow2.asm:asm-debug-all:5.2'
shade 'enigma-asm:enigma:0.12.0.6:lib'
shade 'enigma-asm:enigma:0.12.0.8:lib'
shade 'net.fabricmc:tiny-remapper:+'
shade 'net.sf.jopt-simple:jopt-simple:5.0.4'
shade 'org.apache.logging.log4j:log4j-api:2.11.0'

View File

@ -35,8 +35,6 @@ import net.fabricmc.loom.LoomGradleExtension;
import net.fabricmc.loom.util.Constants;
import org.gradle.api.DefaultTask;
import org.gradle.api.tasks.TaskAction;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.tree.ClassNode;
import org.zeroturnaround.zip.ZipUtil;
import org.zeroturnaround.zip.commons.FileUtils;
@ -99,21 +97,7 @@ public class MapJarsTask extends DefaultTask {
Translator obfuscationTranslator = deobfuscator.getTranslator(TranslationDirection.OBFUSCATING);
Translator deobfuscationTranslator = deobfuscator.getTranslator(TranslationDirection.DEOBFUSCATING);
TranslatingTypeLoader loader = new TranslatingTypeLoader(deobfuscator.getJar(), deobfuscator.getJarIndex(), new ReferencedEntryPool(), obfuscationTranslator, deobfuscationTranslator);
deobfuscator.transformJar(out, progress, new CustomClassTransformer(loader));
}
private class CustomClassTransformer implements Deobfuscator.ClassTransformer {
TranslatingTypeLoader loader;
public CustomClassTransformer(TranslatingTypeLoader loader) {
this.loader = loader;
}
@Override
public void write(ClassNode classNode, ClassWriter classWriter) {
loader.createTransformer(classNode, classWriter);
}
deobfuscator.transformJar(out, progress, loader::transformInto);
}
public static class ProgressListener implements Deobfuscator.ProgressListener {