diff options
author | Dirk Engling <erdgeist@bauklotz.fritz.box> | 2021-07-10 02:48:08 +0200 |
---|---|---|
committer | Dirk Engling <erdgeist@bauklotz.fritz.box> | 2021-07-10 02:48:08 +0200 |
commit | 4eea9c003fbc78eb4ec0f075dbccab8d56b52507 (patch) | |
tree | 79ca59e3427e241732f252a2518132393c71e1f8 /crodump.py | |
parent | d30a78c7ea4c702519b00243b43d507582b119c0 (diff) |
Some clarification on the field types in tables
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): |