summaryrefslogtreecommitdiff
path: root/enigma-cli/src/main/java/cuchaz/enigma/command
diff options
context:
space:
mode:
authorGravatar 2xsaiko2020-11-15 11:48:06 +0100
committerGravatar GitHub2020-11-15 11:48:06 +0100
commit361c0c86b2b37fe41daf212423380a4057b3f102 (patch)
tree08ca580be8f4c7a5c6d0f514922c642c4bba1c28 /enigma-cli/src/main/java/cuchaz/enigma/command
parentMerge pull request #323 from YanisBft/various (diff)
parentDo not abort decompile command on decompiler errors (diff)
downloadenigma-fork-361c0c86b2b37fe41daf212423380a4057b3f102.tar.gz
enigma-fork-361c0c86b2b37fe41daf212423380a4057b3f102.tar.xz
enigma-fork-361c0c86b2b37fe41daf212423380a4057b3f102.zip
Merge pull request #322 from ComunidadAylas/master
Do not abort decompile command on decompiler errors
Diffstat (limited to 'enigma-cli/src/main/java/cuchaz/enigma/command')
-rw-r--r--enigma-cli/src/main/java/cuchaz/enigma/command/DecompileCommand.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/enigma-cli/src/main/java/cuchaz/enigma/command/DecompileCommand.java b/enigma-cli/src/main/java/cuchaz/enigma/command/DecompileCommand.java
index cc62863..12a4e88 100644
--- a/enigma-cli/src/main/java/cuchaz/enigma/command/DecompileCommand.java
+++ b/enigma-cli/src/main/java/cuchaz/enigma/command/DecompileCommand.java
@@ -2,6 +2,7 @@ package cuchaz.enigma.command;
2 2
3import cuchaz.enigma.EnigmaProject; 3import cuchaz.enigma.EnigmaProject;
4import cuchaz.enigma.ProgressListener; 4import cuchaz.enigma.ProgressListener;
5import cuchaz.enigma.EnigmaProject.DecompileErrorStrategy;
5import cuchaz.enigma.source.DecompilerService; 6import cuchaz.enigma.source.DecompilerService;
6import cuchaz.enigma.source.Decompilers; 7import cuchaz.enigma.source.Decompilers;
7 8
@@ -47,7 +48,7 @@ public class DecompileCommand extends Command {
47 ProgressListener progress = new ConsoleProgressListener(); 48 ProgressListener progress = new ConsoleProgressListener();
48 49
49 EnigmaProject.JarExport jar = project.exportRemappedJar(progress); 50 EnigmaProject.JarExport jar = project.exportRemappedJar(progress);
50 EnigmaProject.SourceExport source = jar.decompile(progress, decompilerService); 51 EnigmaProject.SourceExport source = jar.decompile(progress, decompilerService, DecompileErrorStrategy.TRACE_AS_SOURCE);
51 52
52 source.write(fileJarOut, progress); 53 source.write(fileJarOut, progress);
53 } 54 }