Skip to content

Commit cfab1a2

Browse files
committed
buffer_size doesnt have to be 0x10 aligned
1 parent fe9eb1c commit cfab1a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

psptool/file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ def move_buffer(self, new_address, size):
389389
current_address = self.get_address()
390390
move_offset = new_address - current_address
391391
self.buffer_offset += move_offset
392-
self.buffer_size = int(ceil(size / self.ENTRY_ALIGNMENT)) * self.ENTRY_ALIGNMENT
392+
self.buffer_size = size
393393

394394
# update all directories' headers that point to this entry
395395
for directory in self.references:

0 commit comments

Comments
 (0)