diff --git a/scan_props.py b/scan_props.py new file mode 100644 index 0000000..57eb314 --- /dev/null +++ b/scan_props.py @@ -0,0 +1,77 @@ +#!/usr/bin/env python3 +"""Dump specific property values from GVAS files with debug.""" +import struct, sys, os + +data = open(sys.argv[1], 'rb').read() + +def read_u32_at(off): + if off + 4 > len(data): return None + return struct.unpack_from(' 0: + found_val = data[next_offset+9:next_offset+9+slen-1].decode('utf-8', errors='replace') + elif slen == 1: + found_val = '(empty)' + elif type_name == 'DoubleProperty': + voff = next_offset + 5 + if voff + 8 <= len(data): + v = struct.unpack_from('