diff options
| author | JosJuice <josjuice@gmail.com> | 2017-02-10 18:57:58 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2017-02-12 09:37:39 +0100 |
| commit | 49ec22bc42c7a1cf12f2b1ad181dc5efe46f97b5 (patch) | |
| tree | 4271d15295062c7193b330e1386e48c03e77c0b1 /Source/Core/DiscIO/VolumeWiiCrypted.cpp | |
| parent | c96bcace2f64796a5098b58ae620a158e9d3e9dc (diff) | |
DVDInterface: Translate Wii partition offsets for timing purposes
Until now, Dolphin has been using the wrong values
for calculating DVD timing for decrypted Wii reads
(which Wii games essentially always use).
Diffstat (limited to 'Source/Core/DiscIO/VolumeWiiCrypted.cpp')
| -rw-r--r-- | Source/Core/DiscIO/VolumeWiiCrypted.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/DiscIO/VolumeWiiCrypted.cpp b/Source/Core/DiscIO/VolumeWiiCrypted.cpp index cb5fe4464f..ae174604cc 100644 --- a/Source/Core/DiscIO/VolumeWiiCrypted.cpp +++ b/Source/Core/DiscIO/VolumeWiiCrypted.cpp @@ -140,6 +140,12 @@ std::vector<u8> CVolumeWiiCrypted::GetTMD() const return buffer; } +u64 CVolumeWiiCrypted::PartitionOffsetToRawOffset(u64 offset) const +{ + return m_VolumeOffset + m_dataOffset + (offset / BLOCK_DATA_SIZE * BLOCK_TOTAL_SIZE) + + (offset % BLOCK_DATA_SIZE); +} + std::string CVolumeWiiCrypted::GetGameID() const { if (m_pReader == nullptr) |
