mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-27 05:44:51 +00:00
Fixed #1757 Binary search - SWF files need to be sorted by file position
This commit is contained in:
@@ -19,6 +19,7 @@ package com.jpexs.helpers;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
@@ -44,7 +45,7 @@ public class SwfHeaderStreamSearch implements Searchable {
|
||||
public Map<Long, InputStream> search(ProgressListener progListener, byte[]... data) {
|
||||
// Ignore data parameter, find only FWS, CWS, ZWS, GFX and CFX
|
||||
|
||||
Map<Long, InputStream> ret = new HashMap<>();
|
||||
Map<Long, InputStream> ret = new LinkedHashMap<>();
|
||||
byte[] buf = is.getAllRead();
|
||||
byte byte2 = buf[0], byte3 = buf[1];
|
||||
boolean match = false;
|
||||
|
||||
Reference in New Issue
Block a user