diff options
Diffstat (limited to 'enigma-cli/src/main/java/cuchaz/enigma/command')
| -rw-r--r-- | enigma-cli/src/main/java/cuchaz/enigma/command/DecompileCommand.java | 3 |
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 | ||
| 3 | import cuchaz.enigma.EnigmaProject; | 3 | import cuchaz.enigma.EnigmaProject; |
| 4 | import cuchaz.enigma.ProgressListener; | 4 | import cuchaz.enigma.ProgressListener; |
| 5 | import cuchaz.enigma.EnigmaProject.DecompileErrorStrategy; | ||
| 5 | import cuchaz.enigma.source.DecompilerService; | 6 | import cuchaz.enigma.source.DecompilerService; |
| 6 | import cuchaz.enigma.source.Decompilers; | 7 | import 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 | } |