mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 15:59:23 +01:00
Fix scrubbing unencrypted Wii disc images
Untested with unencrypted Wii disc images, because I don't have any. I tested that normal Wii disc images still work, though.
This commit is contained in:
parent
ce3e0fc091
commit
facaeb615e
@ -127,7 +127,10 @@ void DiscScrubber::MarkAsUsedE(u64 partition_data_offset, u64 offset, u64 size)
|
|||||||
// Compensate for 0x400 (SHA-1) per 0x8000 (cluster), and round to whole clusters
|
// Compensate for 0x400 (SHA-1) per 0x8000 (cluster), and round to whole clusters
|
||||||
u64 DiscScrubber::ToClusterOffset(u64 offset) const
|
u64 DiscScrubber::ToClusterOffset(u64 offset) const
|
||||||
{
|
{
|
||||||
return offset / 0x7c00 * CLUSTER_SIZE;
|
if (m_disc->IsEncryptedAndHashed())
|
||||||
|
return offset / 0x7c00 * CLUSTER_SIZE;
|
||||||
|
else
|
||||||
|
return offset % CLUSTER_SIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Helper functions for reading the BE volume
|
// Helper functions for reading the BE volume
|
||||||
|
Loading…
x
Reference in New Issue
Block a user