2.9.7 preview

This commit is contained in:
Konloch 2015-07-06 09:39:32 -06:00
parent ca1cad8c6f
commit 881c405101
2 changed files with 24 additions and 16 deletions

Binary file not shown.

View file

@ -32,6 +32,7 @@ import javax.swing.text.html.HTMLEditorKit;
import the.bytecode.club.bytecodeviewer.BytecodeViewer;
import the.bytecode.club.bytecodeviewer.Resources;
import the.bytecode.club.bytecodeviewer.Settings;
import me.konloch.kontainer.io.HTTPRequest;
/**
@ -110,6 +111,7 @@ public class BootScreen extends JFrame {
setTitle("Bytecode Viewer Boot Screen - Checking Libraries...");
File libsDirectory = new File(BytecodeViewer.libsDirectory);
try {
int completedCheck = 0;
@ -126,7 +128,6 @@ public class BootScreen extends JFrame {
return;
}
File libsDirectory = new File(BytecodeViewer.libsDirectory);
if(args.length >= 1)
if(args[0].equalsIgnoreCase("-clean"))
libsDirectory.delete();
@ -221,6 +222,7 @@ public class BootScreen extends JFrame {
setTitle("Bytecode Viewer Boot Screen - Loading Library " + f.getName());
System.out.println(f.getName());
try {
JarFile jarFile = new JarFile(s);
Enumeration<JarEntry> e = jarFile.entries();
ClassPathHack.addFile(f);
@ -238,12 +240,18 @@ public class BootScreen extends JFrame {
}
}
jarFile.close();
} catch(java.util.zip.ZipException e) {
e.printStackTrace();
f.delete();
BytecodeViewer.showMessage("Error, Library " + f.getName() + " is corrupt, please restart to redownload it.");
}
}
}
}
setTitle("Bytecode Viewer Boot Screen - Booting!");
} catch(Exception e) {
Settings.saveGUI();
StringWriter sw = new StringWriter();
e.printStackTrace(new PrintWriter(sw));
e.printStackTrace();