File tree Expand file tree Collapse file tree
src/the/bytecode/club/bytecodeviewer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,4 +122,6 @@ Changelog:
12212211/1/2014 - Updated and improved the search function, it now prints out more useful information.
12312311/1/2014 - Fixed a UI issue with the Replace All Strings plugin.
12412411/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.
Original file line number Diff line number Diff line change 1- Beta 1.5
1+ Beta 1.5.1
Original file line number Diff line number Diff line change 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 ();
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff line change 2121import javax .swing .tree .TreeNode ;
2222import javax .swing .tree .TreePath ;
2323
24- import org .objectweb .asm .tree .AbstractInsnNode ;
2524import org .objectweb .asm .tree .ClassNode ;
26- import org .objectweb .asm .tree .MethodNode ;
2725
2826import the .bytecode .club .bytecodeviewer .*;
2927import the .bytecode .club .bytecodeviewer .searching .*;
You can’t perform that action at this time.
0 commit comments