Fix Python 1 sysfile 0 header address

This commit is contained in:
987123879113 2021-11-17 07:59:24 +09:00
parent 5fa2f2d532
commit d3f1ed7be9
1 changed files with 2 additions and 2 deletions

View File

@ -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")