mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-17 16:52:02 +00:00
Issue 27: DefineSceneAndFrameLabel tag
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
|
||||
package com.jpexs.asdec.tags;
|
||||
|
||||
import com.jpexs.asdec.Main;
|
||||
import com.jpexs.asdec.SWFInputStream;
|
||||
import com.jpexs.asdec.SWFOutputStream;
|
||||
import com.jpexs.asdec.abc.CopyOutputStream;
|
||||
@@ -129,7 +130,9 @@ public class DefineFont3Tag extends CharacterTag implements FontTag {
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
OutputStream os = baos;
|
||||
SWFOutputStream sos = new SWFOutputStream(os, version);
|
||||
sos = new SWFOutputStream(new CopyOutputStream(sos, new ByteArrayInputStream(data)), 10);
|
||||
if(Main.DEBUG_COPY){
|
||||
sos = new SWFOutputStream(new CopyOutputStream(sos, new ByteArrayInputStream(data)), 10);
|
||||
}
|
||||
try {
|
||||
sos.writeUI16(fontId);
|
||||
sos.writeUB(1, fontFlagsHasLayout ? 1 : 0);
|
||||
|
||||
@@ -84,6 +84,8 @@ public class DefineSceneAndFrameLabelDataTag extends Tag {
|
||||
sceneNames[i] = sis.readString();
|
||||
}
|
||||
int frameLabelCount = (int) sis.readEncodedU32();
|
||||
frameNums=new long[frameLabelCount];
|
||||
frameNames=new String[frameLabelCount];
|
||||
for (int i = 0; i < frameLabelCount; i++) {
|
||||
frameNums[i] = sis.readEncodedU32();
|
||||
frameNames[i] = sis.readString();
|
||||
|
||||
Reference in New Issue
Block a user