Skip to content

Commit

Permalink
Fix dumping full 4GB carts
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadowtrance committed Jun 27, 2016
1 parent cc87b12 commit 01208f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/decryptor/game.c
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ static u32 DumpCartToFile(u32 offset, u32 size, u32 total, CryptBufferInfo* info
offset += read_bytes;
}

for (u32 i = 0; i < size; i += CART_CHUNK_SIZE) {
for (u64 i = 0; i < size; i += CART_CHUNK_SIZE) {
u32 read_bytes = min(CART_CHUNK_SIZE, (size - i));
if (total)
ShowProgress(offset + i, total);
Expand Down

0 comments on commit 01208f0

Please sign in to comment.