Fix Python 1 sysfile 0 header address

pull/7/head
987123879113 2 years ago
parent 5fa2f2d532
commit d3f1ed7be9
  1. 4
      python1/python1_dumper.py

@ -191,8 +191,8 @@ if __name__ == "__main__":
# Not sure how this really works
for offset in [0x20]:
infile.seek(offset)
sysfile_offset = int.from_bytes(infile.read(4), byteorder="little")
sysfile_offset2 = int.from_bytes(infile.read(4), byteorder="little")
sysfile_offset = int.from_bytes(infile.read(4), byteorder="big") * 0x100
sysfile_offset2 = int.from_bytes(infile.read(4), byteorder="big") * 0x100
infile.seek(offset + 0x10)
sysfile_size = int.from_bytes(infile.read(4), byteorder="big")

Loading…
Cancel
Save