From 12bc7a78052c0ecf0be24af31acef1a8b05d5784 Mon Sep 17 00:00:00 2001 From: Albert Liu <45282415+ggrtk@users.noreply.github.com> Date: Fri, 25 Dec 2020 20:01:21 -0800 Subject: [PATCH] MemoryCardImage: Fix multi-block file reads --- src/core/memory_card_image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/memory_card_image.cpp b/src/core/memory_card_image.cpp index 708e937c4..cebe37903 100644 --- a/src/core/memory_card_image.cpp +++ b/src/core/memory_card_image.cpp @@ -297,7 +297,7 @@ bool ReadFile(const DataArray& data, const FileInfo& fi, std::vector* buffer std::memcpy(buffer->data() + (i * BLOCK_SIZE), GetFramePtr(data, block_number, 0), BLOCK_SIZE); const DirectoryFrame* df = GetFramePtr(data, 0, block_number); - block_number = df->next_block_number; + block_number = df->next_block_number + 1; } return true;