parent
58e8bfb17f
commit
c517903761
1 changed files with 16 additions and 3 deletions
|
@ -6,6 +6,8 @@ import java.io.InputStream;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
import java.io.StringWriter;
|
import java.io.StringWriter;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
import me.konloch.kontainer.io.DiskReader;
|
import me.konloch.kontainer.io.DiskReader;
|
||||||
import org.objectweb.asm.tree.ClassNode;
|
import org.objectweb.asm.tree.ClassNode;
|
||||||
import the.bytecode.club.bytecodeviewer.BytecodeViewer;
|
import the.bytecode.club.bytecodeviewer.BytecodeViewer;
|
||||||
|
@ -45,8 +47,19 @@ public class KrakatauDecompiler extends Decompiler {
|
||||||
public String quick() {
|
public String quick() {
|
||||||
if (Configuration.library.isEmpty())
|
if (Configuration.library.isEmpty())
|
||||||
return "";
|
return "";
|
||||||
else
|
|
||||||
|
File dir = new File(Configuration.library);
|
||||||
|
if (!dir.exists())
|
||||||
|
return "";
|
||||||
|
if (!dir.isDirectory())
|
||||||
return ";" + Configuration.library;
|
return ";" + Configuration.library;
|
||||||
|
|
||||||
|
File[] files = dir.listFiles();
|
||||||
|
if (files == null || files.length == 0)
|
||||||
|
return "";
|
||||||
|
|
||||||
|
return ";" + Arrays.stream(files).filter(File::isFile)
|
||||||
|
.map(File::getAbsolutePath).collect(Collectors.joining(";"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public String decompileClassNode(File krakatauTempJar, File krakatauTempDir, ClassNode cn) {
|
public String decompileClassNode(File krakatauTempJar, File krakatauTempDir, ClassNode cn) {
|
||||||
|
|
Loading…
Reference in a new issue