From 4eea9c003fbc78eb4ec0f075dbccab8d56b52507 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sat, 10 Jul 2021 02:48:08 +0200 Subject: Some clarification on the field types in tables --- crodump.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crodump.py') diff --git a/crodump.py b/crodump.py index 86a6926..1b2540f 100644 --- a/crodump.py +++ b/crodump.py @@ -215,16 +215,16 @@ def decode_field(data): idx1 = rd.readdword() name = rd.readname() unk1 = rd.readdword() - unk2 = rd.readbyte() + unk2 = rd.readbyte() # Always 1 if typ: idx2 = rd.readdword() - unk3 = rd.readdword() - unk4 = rd.readdword() + unk3 = rd.readdword() # max value or length + unk4 = rd.readdword() # Always 0x00000009 or 0x0001000d remain = rd.readbytes() - print("%d %2d/%2d %d,%d,%d,%d - '%s' -- %s" % (typ, idx1, idx2, unk1, unk2, unk3, unk4, name, tohex(remain))) + print("Type: %d (%02d/%02d) %04x,(%d-%d),%04x - '%s' -- %s" % (typ, idx1, idx2, unk1, unk2, unk3, unk4, name, tohex(remain))) else: - print("%d %2d %d,%d - '%s'" % (typ, idx1, unk1, unk2, name)) + print("Type: %d %2d %d,%d - '%s'" % (typ, idx1, unk1, unk2, name)) def destruct_base_definition(args, data): -- cgit v1.2.3