mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-09 06:03:32 +01:00
Merge pull request #8496 from JosJuice/volumewii-check-decrypted-order
VolumeWii: Check SupportsReadWiiDecrypted before m_encrypted
This commit is contained in:
commit
44f85bbc5e
@ -162,6 +162,9 @@ bool VolumeWii::Read(u64 offset, u64 length, u8* buffer, const Partition& partit
|
||||
if (partition == PARTITION_NONE)
|
||||
return m_reader->Read(offset, length, buffer);
|
||||
|
||||
if (m_reader->SupportsReadWiiDecrypted())
|
||||
return m_reader->ReadWiiDecrypted(offset, length, buffer, partition.offset);
|
||||
|
||||
auto it = m_partitions.find(partition);
|
||||
if (it == m_partitions.end())
|
||||
return false;
|
||||
@ -173,9 +176,6 @@ bool VolumeWii::Read(u64 offset, u64 length, u8* buffer, const Partition& partit
|
||||
buffer);
|
||||
}
|
||||
|
||||
if (m_reader->SupportsReadWiiDecrypted())
|
||||
return m_reader->ReadWiiDecrypted(offset, length, buffer, partition.offset);
|
||||
|
||||
mbedtls_aes_context* aes_context = partition_details.key->get();
|
||||
if (!aes_context)
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user