Save correct PVD size when creating ISO

This commit is contained in:
Mc-muffin
2024-01-07 03:38:42 -05:00
parent 689b84e7c3
commit 4f30a81313

View File

@@ -1112,12 +1112,12 @@ class ToolsTOR(ToolsTales):
# size, FLD.BIN size and LBA, also update the PVD size
new.write_int32_at(0x82992, dat_sz)
new.write_int32_at(0x829C2, fld_lba)
new.write_int32_at(0x8050, end_lba)
new.write_int32_at(end + 0xC, end_lba)
new.write_int32_at(0x8050, end_lba + 1)
new.write_int32_at(end + 0xC, end_lba + 1)
new.set_endian("big")
new.write_int32_at(0x82996, dat_sz)
new.write_int32_at(0x829C6, fld_lba)
new.write_int32_at(0x8054, end_lba)
new.write_int32_at(0x8054, end_lba + 1)
new.set_endian("little")
# Finally, the SLPS, it's at the same location and size