mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 23:29:17 +00: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:
parent
b02653722d
commit
bb27d4cc95
11 changed files with 101 additions and 59 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue