dumpview: allow opening multiple swfs, context menu: expand all and close menu items

show abc and actionbytes in dump view, hexview style fixes
better scroll to view mode in hex editor
This commit is contained in:
honfika
2014-06-28 07:31:28 +02:00
parent 1bed823af5
commit cb7baba8e9
112 changed files with 3473 additions and 3011 deletions
@@ -79,7 +79,6 @@ import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.List;
import java.util.Map;
import java.util.zip.Deflater;
import java.util.zip.DeflaterOutputStream;
@@ -415,20 +414,12 @@ public class SWFOutputStream extends OutputStream {
* Writes list of Tag values to the stream
*
* @param tags List of tag values
* @param tagPositions
* @param tagLengths
* @throws IOException
*/
public void writeTags(List<Tag> tags, Map<Tag, Long> tagPositions, Map<Tag, Integer> tagLengths) throws IOException {
public void writeTags(List<Tag> tags) throws IOException {
for (Tag tag : tags) {
long pos = getPos();
tag.writeTag(this);
int length = (int) (getPos() - pos);
tagPositions.put(tag, pos);
tagLengths.put(tag, length);
}
// todo: honfika: update tag position and lengths. Currently the 2nd save fails
}
/**