summaryrefslogtreecommitdiff
path: root/Scripts/get_dxbc_hash.py
diff options
context:
space:
mode:
Diffstat (limited to 'Scripts/get_dxbc_hash.py')
-rwxr-xr-xScripts/get_dxbc_hash.py6
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.')