mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-17 21:38:10 +00:00
swf header editor
This commit is contained in:
@@ -179,6 +179,12 @@ public final class SWF implements SWFContainerItem, Timelined {
|
||||
* Default version of SWF file format
|
||||
*/
|
||||
public static final int DEFAULT_VERSION = 10;
|
||||
|
||||
/**
|
||||
* Maximum SWF file format version
|
||||
* Needs to be fixed when SWF versions reaches this value
|
||||
*/
|
||||
public static final int MAX_VERSION = 30;
|
||||
|
||||
/**
|
||||
* Tags inside of file
|
||||
|
||||
@@ -94,7 +94,7 @@ public class SWFSearch {
|
||||
boolean valid = swf.fileSize > 0
|
||||
&& swf.version > 0
|
||||
&& (!swf.tags.isEmpty() || noCheck)
|
||||
&& swf.version < 30; // Needs to be fixed when SWF versions reaches this value
|
||||
&& swf.version <= SWF.MAX_VERSION;
|
||||
if (valid) {
|
||||
long limit = pmi.getPos();
|
||||
MemoryInputStream is = new MemoryInputStream(mis.getAllRead(), (int) (long) addr, (int) limit);
|
||||
|
||||
@@ -46,7 +46,8 @@ public enum FLAVersion {
|
||||
private static final Map<Integer, String> versionToPlayerMap = new HashMap<>();
|
||||
|
||||
static {
|
||||
versionToPlayerMap.put(10, "FlashPlayer10.0"); //10 & 10.1
|
||||
versionToPlayerMap.put(9, "FlashPlayer9.0"); // 9.0.115.0
|
||||
versionToPlayerMap.put(10, "FlashPlayer10.0"); //10 & 10.1
|
||||
versionToPlayerMap.put(11, "FlashPlayer10.2");
|
||||
versionToPlayerMap.put(12, "FlashPlayer10.3");
|
||||
versionToPlayerMap.put(13, "FlashPlayer11.0");
|
||||
@@ -64,6 +65,7 @@ public enum FLAVersion {
|
||||
versionToPlayerMap.put(25, "FlashPlayer14.0");
|
||||
versionToPlayerMap.put(26, "FlashPlayer15.0");
|
||||
versionToPlayerMap.put(27, "FlashPlayer16.0");
|
||||
versionToPlayerMap.put(28, "FlashPlayer17.0");
|
||||
}
|
||||
|
||||
private FLAVersion(String shortName, String applicationName, String xflVersion, int maxSwfVersion) {
|
||||
|
||||
Reference in New Issue
Block a user