mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-27 07:55:36 +00:00
AS1/2 ignoring disassembly errors
This commit is contained in:
@@ -147,7 +147,7 @@ public class DefineButtonTag extends CharacterTag implements ASMSource, BoundedT
|
||||
ReReadableInputStream rri = new ReReadableInputStream(new ByteArrayInputStream(baos.toByteArray()));
|
||||
rri.setPos(prevLength);
|
||||
return Action.removeNops(SWFInputStream.readActionList(rri, version, prevLength), version);
|
||||
} catch (IOException ex) {
|
||||
} catch (Exception ex) {
|
||||
Logger.getLogger(DoActionTag.class.getName()).log(Level.SEVERE, null, ex);
|
||||
return new ArrayList<Action>();
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ public class DoActionTag extends Tag implements ASMSource {
|
||||
ReReadableInputStream rri = new ReReadableInputStream(new ByteArrayInputStream(baos.toByteArray()));
|
||||
rri.setPos(prevLength);
|
||||
return Action.removeNops(SWFInputStream.readActionList(rri, version, prevLength), version);
|
||||
} catch (IOException ex) {
|
||||
} catch (Exception ex) {
|
||||
Logger.getLogger(DoActionTag.class.getName()).log(Level.SEVERE, null, ex);
|
||||
return new ArrayList<Action>();
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ public class DoInitActionTag extends CharacterTag implements ASMSource {
|
||||
ReReadableInputStream rri = new ReReadableInputStream(new ByteArrayInputStream(baos.toByteArray()));
|
||||
rri.setPos(prevLength);
|
||||
return Action.removeNops(SWFInputStream.readActionList(rri, version, prevLength), version);
|
||||
} catch (IOException ex) {
|
||||
} catch (Exception ex) {
|
||||
Logger.getLogger(DoActionTag.class.getName()).log(Level.SEVERE, null, ex);
|
||||
return new ArrayList<Action>();
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ public class BUTTONCONDACTION implements ASMSource {
|
||||
public List<Action> getActions(int version) {
|
||||
try {
|
||||
return Action.removeNops(SWFInputStream.readActionList(new ReReadableInputStream(new ByteArrayInputStream(actionBytes)), version, 0), version);
|
||||
} catch (IOException ex) {
|
||||
} catch (Exception ex) {
|
||||
Logger.getLogger(BUTTONCONDACTION.class.getName()).log(Level.SEVERE, null, ex);
|
||||
return new ArrayList<Action>();
|
||||
}
|
||||
|
||||
@@ -91,10 +91,11 @@ public class CLIPACTIONRECORD implements ASMSource {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Action> getActions(int version) {
|
||||
try {
|
||||
return Action.removeNops(SWFInputStream.readActionList(new ReReadableInputStream(new ByteArrayInputStream(actionBytes)), version, 0), version);
|
||||
} catch (IOException ex) {
|
||||
} catch (Exception ex) {
|
||||
Logger.getLogger(BUTTONCONDACTION.class.getName()).log(Level.SEVERE, null, ex);
|
||||
return new ArrayList<Action>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user