summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/WiiEncryptionCache.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2020-08-29 15:12:02 +0200
committerJosJuice <josjuice@gmail.com>2020-08-29 15:18:52 +0200
commit047bb803376a294a66bca5c9e91e23918706d151 (patch)
treec46f83fd3434880278d225c63241e298a4a80c24 /Source/Core/DiscIO/WiiEncryptionCache.cpp
parent800b2480ecb0d5d0285c6d560fb25f6b96c3b021 (diff)
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.
Diffstat (limited to 'Source/Core/DiscIO/WiiEncryptionCache.cpp')
-rw-r--r--Source/Core/DiscIO/WiiEncryptionCache.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/Source/Core/DiscIO/WiiEncryptionCache.cpp b/Source/Core/DiscIO/WiiEncryptionCache.cpp
index 0bb892da71..52d978761e 100644
--- a/Source/Core/DiscIO/WiiEncryptionCache.cpp
+++ b/Source/Core/DiscIO/WiiEncryptionCache.cpp
@@ -29,10 +29,7 @@ WiiEncryptionCache::EncryptGroup(u64 offset, u64 partition_data_offset,
{
// Only allocate memory if this function actually ends up getting called
if (!m_cache)
- {
m_cache = std::make_unique<std::array<u8, VolumeWii::GROUP_TOTAL_SIZE>>();
- ASSERT(m_blob->SupportsReadWiiDecrypted());
- }
ASSERT(offset % VolumeWii::GROUP_TOTAL_SIZE == 0);
const u64 group_offset_in_partition =