Fix Python 1 sysfile 0 header address
This commit is contained in:
parent
5fa2f2d532
commit
d3f1ed7be9
|
@ -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…
Reference in New Issue