Skip to content
Permalink
Browse files
Merge pull request #10099 from AdmiralCurtiss/directoryblob-read-betw…
…een-files

DiscIO/DirectoryBlob: Handle reads between files.
  • Loading branch information
leoetlino committed Sep 15, 2021
2 parents 94e9751 + 06d41c5 commit 94cfbfc
Showing 1 changed file with 3 additions and 0 deletions.
@@ -179,6 +179,9 @@ bool DiscContentContainer::Read(u64 offset, u64 length, u8* buffer) const
// Zero fill to start of DiscContent data
PadToAddress(it->GetOffset(), &offset, &length, &buffer);

if (length == 0)
return true;

if (!it->Read(&offset, &length, &buffer))
return false;

0 comments on commit 94cfbfc

Please sign in to comment.