Skip to content

Commit

Permalink
Removed Create empty SWF from FFDec debug menu - it is available in s…
Browse files Browse the repository at this point in the history
…tandard menu
  • Loading branch information
jindrapetrik committed Apr 5, 2023
1 parent 5fb072e commit e93122c
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/com/jpexs/decompiler/flash/gui/MainFrameMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -1405,18 +1405,7 @@ public void createMenuBar() {
path = mainPath + "\\..\\..\\libsrc\\ffdec_lib\\testdata\\as3\\as3.swf";
sourceInfos[1] = new OpenableSourceInfo(null, path, null);
Main.openFile(sourceInfos);
}, PRIORITY_MEDIUM, null, true, null, false);
addMenuItem("/debug/createNewSwf", "Create new SWF", "continue16", e -> {
SWF swf = new SWF();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try {
swf.saveTo(baos);
} catch (IOException ex) {
Logger.getLogger(MainFrameMenu.class.getName()).log(Level.SEVERE, null, ex);
}

Main.openFile(new OpenableSourceInfo(new ByteArrayInputStream(baos.toByteArray()), "new.swf", "New SWF"));
}, PRIORITY_MEDIUM, null, true, null, false);
}, PRIORITY_MEDIUM, null, true, null, false);
finishMenu("/debug");
}

Expand Down

0 comments on commit e93122c

Please sign in to comment.