mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
DiscIO: Add parameters to BlobReader::SupportsReadWiiDecrypted
It's possible (but rare) for a WIA or RVZ file to support this for some partitions but not all, and for the game and the blob code to disagree on how large a partition is.
This commit is contained in:
@ -171,11 +171,9 @@ bool VolumeWii::Read(u64 offset, u64 length, u8* buffer, const Partition& partit
|
||||
return false;
|
||||
const PartitionDetails& partition_details = it->second;
|
||||
|
||||
if (m_reader->SupportsReadWiiDecrypted())
|
||||
{
|
||||
return m_reader->ReadWiiDecrypted(offset, length, buffer,
|
||||
partition.offset + *partition_details.data_offset);
|
||||
}
|
||||
const u64 partition_data_offset = partition.offset + *partition_details.data_offset;
|
||||
if (m_reader->SupportsReadWiiDecrypted(offset, length, partition_data_offset))
|
||||
return m_reader->ReadWiiDecrypted(offset, length, buffer, partition_data_offset);
|
||||
|
||||
if (!m_encrypted)
|
||||
{
|
||||
|
Reference in New Issue
Block a user