diff options
| author | Leo Lam <leolino.lam@gmail.com> | 2017-08-11 15:58:42 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-11 15:58:42 +0800 |
| commit | 54778303ee1e85a4e70d33c548f969c4bacef92c (patch) | |
| tree | cc5201d813e0f02aa5fea024c9ed0908638f7601 /Source/Core/DiscIO/DiscScrubber.cpp | |
| parent | d89698898abeda018dc2b8896f00bc46f036f36b (diff) | |
| parent | 5e3c98af1dc06e9530e8c290a43bb702274e6ec3 (diff) | |
Merge pull request #5871 from JosJuice/read-swapped-and-shifted
DiscIO: Add a Volume::ReadSwappedAndShifted function
Diffstat (limited to 'Source/Core/DiscIO/DiscScrubber.cpp')
| -rw-r--r-- | Source/Core/DiscIO/DiscScrubber.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/DiscScrubber.cpp b/Source/Core/DiscIO/DiscScrubber.cpp index 52d907be69..b2fc397eea 100644 --- a/Source/Core/DiscIO/DiscScrubber.cpp +++ b/Source/Core/DiscIO/DiscScrubber.cpp @@ -136,9 +136,9 @@ bool DiscScrubber::ReadFromVolume(u64 offset, u32& buffer, const Partition& part bool DiscScrubber::ReadFromVolume(u64 offset, u64& buffer, const Partition& partition) { - std::optional<u32> value = m_disc->ReadSwapped<u32>(offset, partition); + std::optional<u64> value = m_disc->ReadSwappedAndShifted(offset, partition); if (value) - buffer = static_cast<u64>(*value) << 2; + buffer = *value; return value.has_value(); } |
