Support 1-byte integer PUSH from tricoro.

This commit is contained in:
Jennifer Taylor
2021-04-06 23:01:42 +00:00
parent 32cc4a071c
commit 689a997079
+6
View File
@@ -1461,6 +1461,12 @@ class SWF:
propertyval = struct.unpack(">B", datachunk[offset_ptr:(offset_ptr + 1)])[0] + 0x800
offset_ptr += 1
vprint(f"{prefix} ORGFUNC2 CONST NAME: {AP2PropertyType.property_to_name(propertyval)}")
elif obj_to_create == 0x37:
# Integer object but one byte.
ival = struct.unpack(">B", datachunk[offset_ptr:(offset_ptr + 1)])[0]
offset_ptr += 1
vprint(f"{prefix} INTEGER: {ival}")
else:
raise Exception(f"Unsupported object {hex(obj_to_create)} to push!")