import struct, os # Compare file structure to understand mip_info for f in sorted(os.listdir('.import')): if f.endswith('.stex'): path = os.path.join('.import', f) with open(path, 'rb') as fh: d = fh.read() w, h = struct.unpack(' 0 or f.startswith('titlescreen') or f.startswith('de_DE') or ('electricity' in f): print(f"{f}: {w}x{h} fl={flags:#x} mip={mip_info:#x}({mip_info}) dtype={dtype} dlen={dlen} total={total} extra_after_data={extra}") if 'sheet' in f.lower() and 'sheet' not in f: pass