Decompiler fix and compiler fix (works! 2)
This commit is contained in:
parent
63ca6fb6dd
commit
097528c09a
@ -82,7 +82,6 @@ public class FlashDecompiler {
|
||||
len = Bits.convert(bitSet.get(i, i+32), 32, true);
|
||||
i += 32;
|
||||
}
|
||||
log.info("Len: {}", len);
|
||||
TagType tagType = TagType.fromId(type);
|
||||
if( tagType == TagType.DoAction ) {
|
||||
int g = i / 8;
|
||||
@ -141,12 +140,10 @@ public class FlashDecompiler {
|
||||
tag.getActions().add(new ActionGetMember());
|
||||
break;
|
||||
case Add:
|
||||
log.info("Add");
|
||||
i++;
|
||||
tag.getActions().add(new ActionAdd());
|
||||
break;
|
||||
case Unknown:
|
||||
log.info("Unknown tag has been hit: {} / {}", i, tag.getActions().get(tag.getActions().size()-1));
|
||||
return tag;
|
||||
default:
|
||||
log.error("Unknown action field type: {}", StringUtils.bytesToHex(new byte[] {data[i]}));
|
||||
@ -154,7 +151,6 @@ public class FlashDecompiler {
|
||||
break;
|
||||
}
|
||||
}
|
||||
log.info("Out of loop");
|
||||
return tag;
|
||||
}
|
||||
|
||||
@ -184,10 +180,8 @@ public class FlashDecompiler {
|
||||
case STRING:
|
||||
i++;
|
||||
u++;
|
||||
log.info("S0: {}", i);
|
||||
var result = findNull(data, i, u);
|
||||
push.getItems().add(new StringItem(new String(result.getValue0(), StandardCharsets.UTF_8)));
|
||||
log.info("STRING: {} {}", new String(result.getValue0(), StandardCharsets.UTF_8), result.getValue1());
|
||||
i = result.getValue1();
|
||||
u = result.getValue2();
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user