1
0
mirror of https://github.com/jummy0/sb2-decomp synced 2025-03-15 04:24:48 +01:00
sb2-decomp/util/extract_tableblupi.py
2024-10-22 18:13:16 -05:00

16 lines
397 B
Python

# JUMMY WAS HERE
# extract table_blupi from speedy blupi 2.2 english ver
import sys
import io
offset = 0x34e60
out = []
with io.open('BLUPI.exe', 'rb') as f:
data = f.read()
for i in range(2842):
out.append (int.from_bytes(data[offset + i * 4 : offset + i * 4 + 4], byteorder='little', signed=True))
with io.open('out.h', 'wb') as f2:
f2.write(bytearray(', '.join(map(str,out)), 'ascii'))