mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 20:58:54 +00:00
DiscIO/DirectoryBlob: Handle reads between files.
This commit is contained in:
parent
ee863e6722
commit
06d41c53ce
1 changed files 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
|
// Zero fill to start of DiscContent data
|
||||||
PadToAddress(it->GetOffset(), &offset, &length, &buffer);
|
PadToAddress(it->GetOffset(), &offset, &length, &buffer);
|
||||||
|
|
||||||
|
if (length == 0)
|
||||||
|
return true;
|
||||||
|
|
||||||
if (!it->Read(&offset, &length, &buffer))
|
if (!it->Read(&offset, &length, &buffer))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue