#!/usr/bin/env python3 """Parser per .sprx PS4/PS5 (ET_SCE_DYNAMIC): export/import con nomi risolti via aerolib.csv.""" import struct, sys, os def load_nid_db(p=None): p = p or os.path.join(os.path.dirname(os.path.abspath(__file__)), 'aerolib.csv') m={} with open(p, encoding='utf-8', errors='replace') as f: for line in f: line=line.strip() if not line: continue parts=line.split(' ',1) if len(parts)==2: m[parts[0]]=parts[1] return m def parse(path): d=open(path,'rb').read() phoff=struct.unpack_from('>48; off=v&0xffffffff if off and off<0x1000000: try: s=nm(off) except Exception: continue if s and idx not in libs: libs[idx]=s nchain=struct.unpack_from('