mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
DiscIO/VolumeWii: Decouple "is encrypted" from "is hashed"
Needed for the next commit. NFS disc images are hashed but not encrypted. While we're at it, also get rid of SupportsIntegrityCheck. It does the same thing as old IsEncryptedAndHashed and new HasWiiHashes.
This commit is contained in:
@ -92,7 +92,7 @@ void DiscScrubber::MarkAsUsedE(u64 partition_data_offset, u64 offset, u64 size)
|
||||
// Compensate for 0x400 (SHA-1) per 0x8000 (cluster), and round to whole clusters
|
||||
u64 DiscScrubber::ToClusterOffset(u64 offset) const
|
||||
{
|
||||
if (m_disc->IsEncryptedAndHashed())
|
||||
if (m_disc->HasWiiHashes())
|
||||
return offset / 0x7c00 * CLUSTER_SIZE;
|
||||
else
|
||||
return Common::AlignDown(offset, CLUSTER_SIZE);
|
||||
|
Reference in New Issue
Block a user