MemoryCardImage: Fix multi-block file reads

This commit is contained in:
Albert Liu 2020-12-25 20:01:21 -08:00
parent 56fc694076
commit 12bc7a7805
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ bool ReadFile(const DataArray& data, const FileInfo& fi, std::vector<u8>* buffer
std::memcpy(buffer->data() + (i * BLOCK_SIZE), GetFramePtr<u8>(data, block_number, 0), BLOCK_SIZE);
const DirectoryFrame* df = GetFramePtr<DirectoryFrame>(data, 0, block_number);
block_number = df->next_block_number;
block_number = df->next_block_number + 1;
}
return true;