diff options
| author | 2026-04-01 11:29:18 -0400 | |
|---|---|---|
| committer | 2026-04-01 11:29:18 -0400 | |
| commit | f6548381b4a104b3b93ec1eed8add8fe23057a48 (patch) | |
| tree | 543f20f92b6248fd9da079508a71bc1ed0515776 /Scripts | |
| parent | 47ba7138ae1fc3f090905a0a3feee3b5ae36cbf2 (diff) | |
| download | WorldTuningTool-f6548381b4a104b3b93ec1eed8add8fe23057a48.tar.gz WorldTuningTool-f6548381b4a104b3b93ec1eed8add8fe23057a48.tar.bz2 WorldTuningTool-f6548381b4a104b3b93ec1eed8add8fe23057a48.zip | |
Track patch settings in config
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'Scripts')
| -rwxr-xr-x | Scripts/get_dxbc_hash.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Scripts/get_dxbc_hash.py b/Scripts/get_dxbc_hash.py index 0c53107..dabcc42 100755 --- a/Scripts/get_dxbc_hash.py +++ b/Scripts/get_dxbc_hash.py @@ -12,6 +12,10 @@ for path in sys.argv[1:]: print(path + ':') with open(path, 'rb') as f: if f.read(4).decode('ASCII') == 'DXBC': - print(' %08x-%08x-%08x-%08x' % (struct.unpack('<I', f.read(4))[0], struct.unpack('<I', f.read(4))[0], struct.unpack('<I', f.read(4))[0], struct.unpack('<I', f.read(4))[0])) + print(' %08x-%08x-%08x-%08x' % ( + struct.unpack('<I', f.read(4))[0], + struct.unpack('<I', f.read(4))[0], + struct.unpack('<I', f.read(4))[0], + struct.unpack('<I', f.read(4))[0])) else: print(' Invalid DXBC file.') |