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