Skip to content

Commit

Permalink
fix SaveSlot.load() not working
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalDetective47 committed Jul 16, 2024
1 parent 091e500 commit 11455a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = koro
version = 2.0.0.post2
version = 2.0.1
author = DigitalDetective47
author_email = [email protected]
description = Tools for manipulating levels made in Marble Saga: Kororinpa
Expand Down
3 changes: 2 additions & 1 deletion src/koro/slot/save.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ def load(self) -> Stage | None:
block: bytearray = bytearray()
while True:
block.clear()
f.readinto1(block)
block.extend(f.read1())
print(block)
if len(b.getbuffer()) + len(block) > 156864:
del block[156864 - len(b.getbuffer()) :]
if block[-1]:
Expand Down

0 comments on commit 11455a6

Please sign in to comment.