From 644d1f09e1f30fdfa4653ade1b5c4e23653a1036 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Wed, 7 Aug 2024 17:19:00 +1000 Subject: [PATCH] Fix alignment bug in PSISOIMG Signed-off-by: Ronnie Sahlberg --- popstation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/popstation.py b/popstation.py index c9498e7..fb2e5fd 100755 --- a/popstation.py +++ b/popstation.py @@ -3202,7 +3202,7 @@ def create_pbp(self): else: # If there is no PSTITLEIMG then the PSISOIMG will be aligned # on the next 0x10000 boundary. - fh.seek( (fh.tell() + 0x10000) & 0xffff0000 ) + fh.seek( (fh.tell() + 0xffff) & 0xffff0000 ) disc_num = 0 psiso_offsets = []