updated some libs & disabled the decode resource option

This commit is contained in:
Konloch 2019-04-12 18:27:39 -06:00
parent 242466de17
commit 2d493c10bc
10 changed files with 7 additions and 5 deletions

BIN
libs/cfr-0.142.jar Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -450,6 +450,7 @@ public class Boot {
File krakatauZip = null;
for (File f : new File(BytecodeViewer.libsDirectory).listFiles()) {
if (f.getName().toLowerCase().startsWith("krakatau-")) {
//System.out.println(f.getName());
BytecodeViewer.krakatauVersion = f.getName().split("-")[1].split("\\.")[0];
krakatauZip = f;
}
@ -467,7 +468,8 @@ public class Boot {
}
}
BytecodeViewer.krakatauWorkingDirectory = BytecodeViewer.getBCVDirectory() + BytecodeViewer.fs + "krakatau_" + BytecodeViewer.krakatauVersion + BytecodeViewer.fs + "Krakatau-master";
BytecodeViewer.krakatauWorkingDirectory = BytecodeViewer.getBCVDirectory() + BytecodeViewer.fs + "krakatau_" +
BytecodeViewer.krakatauVersion + BytecodeViewer.fs + "Krakatau-master";
File krakatauDirectory = new File(BytecodeViewer.getBCVDirectory() + BytecodeViewer.fs + "krakatau_" + BytecodeViewer.krakatauVersion);
if (!krakatauDirectory.exists()) {
try {

View file

@ -130,7 +130,7 @@ import the.bytecode.club.bytecodeviewer.plugin.PluginManager;
public class BytecodeViewer {
/*per version*/
public static String version = "2.9.11";
public static String version = "2.9.12";
public static boolean previewCopy = false;
public static boolean fatJar = true; //could be automatic by checking if it's loaded a class named whatever for a library
/*the rest*/

View file

@ -394,7 +394,7 @@ public class Settings {
BytecodeViewer.viewer.panel3Fern_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(BytecodeViewer.settingsName, 103, false)));
BytecodeViewer.viewer.panel3Krakatau_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(BytecodeViewer.settingsName, 104, false)));
BytecodeViewer.viewer.panel3Smali_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(BytecodeViewer.settingsName, 105, false)));
BytecodeViewer.viewer.decodeAPKResources.setSelected(Boolean.parseBoolean(DiskReader.loadString(BytecodeViewer.settingsName, 106, false)));
// BytecodeViewer.viewer.decodeAPKResources.setSelected(Boolean.parseBoolean(DiskReader.loadString(BytecodeViewer.settingsName, 106, false)));
BytecodeViewer.library = DiskReader.loadString(BytecodeViewer.settingsName, 107, false);
BytecodeViewer.pingback = Boolean.parseBoolean(DiskReader.loadString(BytecodeViewer.settingsName, 108, false));
BytecodeViewer.viewer.panel1JDGUI_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(BytecodeViewer.settingsName, 109, false)));

View file

@ -95,7 +95,7 @@ public class ProcyonDecompiler extends Decompiler {
.isSelected());
settings.setUnicodeOutputEnabled(BytecodeViewer.viewer.chckbxmntmNewCheckItem_1
.isSelected());
settings.setFormattingOptions(JavaFormattingOptions.createDefault());
settings.setJavaFormattingOptions(JavaFormattingOptions.createDefault());
return settings;
}

View file

@ -1619,7 +1619,7 @@ public class MainViewerGUI extends JFrame implements FileChangeNotifier {
mnSettings.add(refreshOnChange);
mnSettings.add(separator_38);
decodeAPKResources.setSelected(true);
decodeAPKResources.setSelected(false);
mnSettings.add(decodeAPKResources);