Skip to content

Commit

Permalink
2.7.0
Browse files Browse the repository at this point in the history
01/11/2015 - Improved the Refresh Class function to be used as the
default compile function.
01/11/2015 - Implemented better error handling for decompiling class
files.
01/15/2015 - CTRL + O will open the add file interface.
01/15/2015 - CTRL + N will open the net workspace interface.
01/15/2015 - It will now save the last directory you opened.
01/15/2015 - Some how the URL for the auto updater change log got
changed, this has been fixed.
01/15/2015 - Slightly updated the change log display, it'll now show all
the changes since your version.
01/16/2015 - Made EZ-Injection UI look a bit nicer.
01/27/2015 - Decided to scrap the  JVM Sandbox POC and use the Security
Manager.
01/27/2015 - BCV now blocks exec and won't allow any ports to be bound.
  • Loading branch information
Konloch committed Jan 27, 2015
1 parent d9f35b8 commit 6acac78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Binary file modified BytecodeViewer 2.7.0.jar
Binary file not shown.
14 changes: 7 additions & 7 deletions src/the/bytecode/club/bytecodeviewer/BytecodeViewer.java
Original file line number Diff line number Diff line change
Expand Up @@ -396,14 +396,14 @@ public void run() {
} catch(Exception e) {
new the.bytecode.club.bytecodeviewer.api.ExceptionUI(e);
}
fc.setFileFilter(viewer.new JarFileFilter());
fc.setFileFilter(viewer.new ZipFileFilter());
fc.setFileHidingEnabled(false);
fc.setAcceptAllFileFilterUsed(false);
int returnVal = fc.showSaveDialog(viewer);
if (returnVal == JFileChooser.APPROVE_OPTION) {
File file = fc.getSelectedFile();
if(!file.getAbsolutePath().endsWith(".jar"))
file = new File(file.getAbsolutePath()+".jar");
if(!file.getAbsolutePath().endsWith(".zip"))
file = new File(file.getAbsolutePath()+".zip");

if(file.exists()) {
pane = new JOptionPane("The file " + file + " exists, would you like to overwrite it?");
Expand All @@ -429,10 +429,10 @@ public void run() {
@Override
public void run() {
try {
InputStream is = new URL("https://github.com/Konloch/bytecode-viewer/releases/download/v"+version+"/BytecodeViewer."+version+".jar").openConnection().getInputStream();
InputStream is = new URL("https://github.com/Konloch/bytecode-viewer/releases/download/v"+version+"/BytecodeViewer."+version+".zip").openConnection().getInputStream();
FileOutputStream fos = new FileOutputStream(finalFile);
try {
System.out.println("Downloading from https://github.com/Konloch/bytecode-viewer/releases/download/v"+version+"/BytecodeViewer."+version+".jar");
System.out.println("Downloading from https://github.com/Konloch/bytecode-viewer/releases/download/v"+version+"/BytecodeViewer."+version+".zip");
byte[] buffer = new byte[8192];
int len;
int downloaded = 0;
Expand Down Expand Up @@ -463,9 +463,9 @@ public void run() {
}
}
System.out.println("Download finished!");
showMessage("Download successful! You can find the updated jar at " + finalFile.getAbsolutePath());
showMessage("Download successful! You can find the updated program at " + finalFile.getAbsolutePath());
} catch(FileNotFoundException e) {
showMessage("Unable to download, the jar file has not been uploaded yet, please try again later in an hour.");
showMessage("Unable to download, the zip file has not been uploaded yet, please try again later in an hour.");
} catch(Exception e) {
new the.bytecode.club.bytecodeviewer.api.ExceptionUI(e);
}
Expand Down

0 comments on commit 6acac78

Please sign in to comment.