diff options
Diffstat (limited to 'crodump.py')
| -rw-r--r-- | crodump.py | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -215,16 +215,16 @@ def decode_field(data): | |||
| 215 | idx1 = rd.readdword() | 215 | idx1 = rd.readdword() |
| 216 | name = rd.readname() | 216 | name = rd.readname() |
| 217 | unk1 = rd.readdword() | 217 | unk1 = rd.readdword() |
| 218 | unk2 = rd.readbyte() | 218 | unk2 = rd.readbyte() # Always 1 |
| 219 | if typ: | 219 | if typ: |
| 220 | idx2 = rd.readdword() | 220 | idx2 = rd.readdword() |
| 221 | unk3 = rd.readdword() | 221 | unk3 = rd.readdword() # max value or length |
| 222 | unk4 = rd.readdword() | 222 | unk4 = rd.readdword() # Always 0x00000009 or 0x0001000d |
| 223 | remain = rd.readbytes() | 223 | remain = rd.readbytes() |
| 224 | 224 | ||
| 225 | print("%d %2d/%2d %d,%d,%d,%d - '%s' -- %s" % (typ, idx1, idx2, unk1, unk2, unk3, unk4, name, tohex(remain))) | 225 | print("Type: %d (%02d/%02d) %04x,(%d-%d),%04x - '%s' -- %s" % (typ, idx1, idx2, unk1, unk2, unk3, unk4, name, tohex(remain))) |
| 226 | else: | 226 | else: |
| 227 | print("%d %2d %d,%d - '%s'" % (typ, idx1, unk1, unk2, name)) | 227 | print("Type: %d %2d %d,%d - '%s'" % (typ, idx1, unk1, unk2, name)) |
| 228 | 228 | ||
| 229 | 229 | ||
| 230 | def destruct_base_definition(args, data): | 230 | def destruct_base_definition(args, data): |
