From 4f30a813138bb6fd803cbd21ce2600a3671e7eab Mon Sep 17 00:00:00 2001 From: Mc-muffin <8714476+Mc-muffin@users.noreply.github.com> Date: Sun, 7 Jan 2024 03:38:42 -0500 Subject: [PATCH] Save correct PVD size when creating ISO --- pythonlib/games/ToolsTOR.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pythonlib/games/ToolsTOR.py b/pythonlib/games/ToolsTOR.py index 6a41469..2deca85 100644 --- a/pythonlib/games/ToolsTOR.py +++ b/pythonlib/games/ToolsTOR.py @@ -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