Merge pull request #10099 from AdmiralCurtiss/directoryblob-read-between-files

DiscIO/DirectoryBlob: Handle reads between files.
This commit is contained in:
Léo Lam 2021-09-15 14:38:37 +02:00 committed by GitHub
commit 94cfbfc49d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;