Skip to content
Permalink
Browse files
Merge pull request #8516 from JosJuice/scrub-unencrypted-again
Fix scrubbing unencrypted Wii disc images (for real this time)
  • Loading branch information
Helios747 committed Dec 8, 2019
2 parents bac8c06 + 711b360 commit a21fb96
Showing 1 changed file with 2 additions and 1 deletion.
@@ -13,6 +13,7 @@
#include <string>
#include <vector>

#include "Common/Align.h"
#include "Common/CommonTypes.h"
#include "Common/File.h"
#include "Common/Logging/Log.h"
@@ -124,7 +125,7 @@ u64 DiscScrubber::ToClusterOffset(u64 offset) const
if (m_disc->IsEncryptedAndHashed())
return offset / 0x7c00 * CLUSTER_SIZE;
else
return offset % CLUSTER_SIZE;
return Common::AlignDown(offset, CLUSTER_SIZE);
}

// Helper functions for reading the BE volume

0 comments on commit a21fb96

Please sign in to comment.