Skip to content

Commit cf1e93c

Browse files
committed
Released Beta 1.5.1
11/2/2014 - Fixed a CFR issue with packages.
1 parent c319132 commit cf1e93c

6 files changed

Lines changed: 27 additions & 18 deletions

File tree

BytecodeViewer Beta 1.5.1.jar

38.3 MB
Binary file not shown.

README.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,6 @@ Changelog:
122122
11/1/2014 - Updated and improved the search function, it now prints out more useful information.
123123
11/1/2014 - Fixed a UI issue with the Replace All Strings plugin.
124124
11/2/2014 - Added search function to the Class Viewer.
125-
11/2/2014 - Updated Procyon to procyon-decompiler-0.5.27.
125+
11/2/2014 - Updated Procyon to procyon-decompiler-0.5.27.
126+
--- Beta 1.5.1 ---:
127+
11/2/2014 - Fixed a CFR issue with packages.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Beta 1.5
1+
Beta 1.5.1

src/the/bytecode/club/bytecodeviewer/BytecodeViewer.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@
152152
* 11/1/2014 - Fixed a UI issue with the Replace All Strings plugin.
153153
* 11/2/2014 - Added search function to the Class Viewer.
154154
* 11/2/2014 - Updated Procyon to procyon-decompiler-0.5.27.
155+
* ----Beta 1.5.1-----:
156+
* 11/2/2014 - Fixed a CFR issue with packages.
155157
*
156158
* @author Konloch
157159
*
@@ -170,7 +172,7 @@ public class BytecodeViewer {
170172
public static String fs = System.getProperty("file.separator");
171173
public static String nl = System.getProperty("line.separator");
172174
public static String tempDirectory = "bcv_temp";
173-
public static String version = "Beta 1.5";
175+
public static String version = "Beta 1.5.1";
174176

175177
public static void main(String[] args) {
176178
cleanup();

src/the/bytecode/club/bytecodeviewer/decompilers/java/CFRDecompiler.java

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,8 @@ public String decompileClassNode(ClassNode cn) {
5555
tempClass.delete();
5656

5757

58-
for(File outputJava : new File(fuckery).listFiles()) {
59-
String s;
60-
try {
61-
s = DiskReader.loadAsString(outputJava.getAbsolutePath());
62-
63-
outputJava.delete();
64-
65-
return s;
66-
} catch (Exception e) {
67-
e.printStackTrace();
68-
}
69-
}
70-
return "CFR error! Send the stacktrace to Konloch at http://the.bytecode.club or konloch@gmail.com";
58+
return findFile(new File(fuckery).listFiles());
59+
7160
}
7261

7362
Random r = new Random();
@@ -83,6 +72,24 @@ public String fuckery(String start) {
8372
return null;
8473
}
8574

75+
public String findFile(File[] fA) {
76+
for(File f : fA) {
77+
if(f.isDirectory())
78+
return findFile(f.listFiles());
79+
else {
80+
String s = "";
81+
try {
82+
s = DiskReader.loadAsString(f.getAbsolutePath());
83+
} catch(Exception e) {
84+
e.printStackTrace();
85+
return "CFR error! Send the stacktrace to Konloch at http://the.bytecode.club or konloch@gmail.com";
86+
}
87+
return s;
88+
}
89+
}
90+
return "CFR error! Send the stacktrace to Konloch at http://the.bytecode.club or konloch@gmail.com";
91+
}
92+
8693
public String[] generateMainMethod(String filePath, String outputPath) {
8794
return new String[] {
8895
filePath,

src/the/bytecode/club/bytecodeviewer/gui/SearchingPane.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
import javax.swing.tree.TreeNode;
2222
import javax.swing.tree.TreePath;
2323

24-
import org.objectweb.asm.tree.AbstractInsnNode;
2524
import org.objectweb.asm.tree.ClassNode;
26-
import org.objectweb.asm.tree.MethodNode;
2725

2826
import the.bytecode.club.bytecodeviewer.*;
2927
import the.bytecode.club.bytecodeviewer.searching.*;

0 commit comments

Comments
 (0)