mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #8516 from JosJuice/scrub-unencrypted-again
Fix scrubbing unencrypted Wii disc images (for real this time)
This commit is contained in:
commit
a21fb96638
@ -13,6 +13,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "Common/Align.h"
|
||||||
#include "Common/CommonTypes.h"
|
#include "Common/CommonTypes.h"
|
||||||
#include "Common/File.h"
|
#include "Common/File.h"
|
||||||
#include "Common/Logging/Log.h"
|
#include "Common/Logging/Log.h"
|
||||||
@ -124,7 +125,7 @@ u64 DiscScrubber::ToClusterOffset(u64 offset) const
|
|||||||
if (m_disc->IsEncryptedAndHashed())
|
if (m_disc->IsEncryptedAndHashed())
|
||||||
return offset / 0x7c00 * CLUSTER_SIZE;
|
return offset / 0x7c00 * CLUSTER_SIZE;
|
||||||
else
|
else
|
||||||
return offset % CLUSTER_SIZE;
|
return Common::AlignDown(offset, CLUSTER_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Helper functions for reading the BE volume
|
// Helper functions for reading the BE volume
|
||||||
|
Loading…
Reference in New Issue
Block a user