diff options
Diffstat (limited to 'src/main/java/cuchaz/enigma/CommandMain.java')
| -rw-r--r-- | src/main/java/cuchaz/enigma/CommandMain.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/cuchaz/enigma/CommandMain.java b/src/main/java/cuchaz/enigma/CommandMain.java index a84cd5e..7c0a3d5 100644 --- a/src/main/java/cuchaz/enigma/CommandMain.java +++ b/src/main/java/cuchaz/enigma/CommandMain.java | |||
| @@ -58,7 +58,7 @@ public class CommandMain { | |||
| 58 | File fileJarOut = getWritableFolder(getArg(args, 2, "out folder", true)); | 58 | File fileJarOut = getWritableFolder(getArg(args, 2, "out folder", true)); |
| 59 | Path fileMappings = getReadablePath(getArg(args, 3, "mappings file", false)); | 59 | Path fileMappings = getReadablePath(getArg(args, 3, "mappings file", false)); |
| 60 | Deobfuscator deobfuscator = getDeobfuscator(fileMappings, new JarFile(fileJarIn)); | 60 | Deobfuscator deobfuscator = getDeobfuscator(fileMappings, new JarFile(fileJarIn)); |
| 61 | deobfuscator.writeSources(fileJarOut, new ConsoleProgressListener()); | 61 | deobfuscator.writeSources(fileJarOut.toPath(), new ConsoleProgressListener()); |
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | private static void deobfuscate(String[] args) throws Exception { | 64 | private static void deobfuscate(String[] args) throws Exception { |
| @@ -66,7 +66,7 @@ public class CommandMain { | |||
| 66 | File fileJarOut = getWritableFile(getArg(args, 2, "out jar", true)); | 66 | File fileJarOut = getWritableFile(getArg(args, 2, "out jar", true)); |
| 67 | Path fileMappings = getReadablePath(getArg(args, 3, "mappings file", false)); | 67 | Path fileMappings = getReadablePath(getArg(args, 3, "mappings file", false)); |
| 68 | Deobfuscator deobfuscator = getDeobfuscator(fileMappings, new JarFile(fileJarIn)); | 68 | Deobfuscator deobfuscator = getDeobfuscator(fileMappings, new JarFile(fileJarIn)); |
| 69 | deobfuscator.writeJar(fileJarOut, new ConsoleProgressListener()); | 69 | deobfuscator.writeTransformedJar(fileJarOut, new ConsoleProgressListener()); |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | private static Deobfuscator getDeobfuscator(Path fileMappings, JarFile jar) throws Exception { | 72 | private static Deobfuscator getDeobfuscator(Path fileMappings, JarFile jar) throws Exception { |