Default SWF file version moved to SWF file

This commit is contained in:
Jindra Pet��k
2012-12-29 07:35:50 +01:00
parent 0ac8e4a9b1
commit 1f804cbf18
3 changed files with 16 additions and 11 deletions
+8 -4
View File
@@ -38,6 +38,10 @@ import java.util.zip.InflaterInputStream;
*/
public class SWF {
/**
* Default version of SWF file format
*/
public static final int DEFAULT_VERSION = 10;
/**
* Tags inside of file
*/
@@ -335,11 +339,11 @@ public class SWF {
informListeners("export", "Exporting " + f + " ...");
String ret;
if (isPcode) {
ret = ((ASMSource) node.tag).getASMSource(10); //TODO:Ensure correct version here
ret = ((ASMSource) node.tag).getASMSource(SWF.DEFAULT_VERSION);
} else {
List<com.jpexs.asdec.action.Action> as = ((ASMSource) node.tag).getActions(10);//TODO:Ensure correct version here
com.jpexs.asdec.action.Action.setActionsAddresses(as, 0, 10);//TODO:Ensure correct version here
ret = (Highlighting.stripHilights(com.jpexs.asdec.action.Action.actionsToSource(as, 10))); //TODO:Ensure correct version here
List<com.jpexs.asdec.action.Action> as = ((ASMSource) node.tag).getActions(SWF.DEFAULT_VERSION);
com.jpexs.asdec.action.Action.setActionsAddresses(as, 0, SWF.DEFAULT_VERSION);
ret = (Highlighting.stripHilights(com.jpexs.asdec.action.Action.actionsToSource(as, SWF.DEFAULT_VERSION)));
}