diff options
| author | Lioncash <mathew1800@gmail.com> | 2015-09-22 13:25:54 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2015-09-22 13:50:35 -0400 |
| commit | 4b9b82e00016cbb8aa3c8a45bd32aea460f28c07 (patch) | |
| tree | 76f25689c3087da3ba0c663e307b40ada1bc551d /Source/Core/DiscIO/VolumeWad.cpp | |
| parent | 5d774df1e8e0622a68f53c741db07922baadeae3 (diff) | |
DiscIO: Do swapping in GetTitleID implementations
Gets rid of external swaps at every usage.
Diffstat (limited to 'Source/Core/DiscIO/VolumeWad.cpp')
| -rw-r--r-- | Source/Core/DiscIO/VolumeWad.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/VolumeWad.cpp b/Source/Core/DiscIO/VolumeWad.cpp index f37e165b56..a268b3add9 100644 --- a/Source/Core/DiscIO/VolumeWad.cpp +++ b/Source/Core/DiscIO/VolumeWad.cpp @@ -93,11 +93,12 @@ std::string CVolumeWAD::GetMakerID() const return DecodeString(temp); } -bool CVolumeWAD::GetTitleID(u8* _pBuffer) const +bool CVolumeWAD::GetTitleID(u64* buffer) const { - if (!Read(m_offset + 0x01DC, 8, _pBuffer)) + if (!Read(m_offset + 0x01DC, sizeof(u64), reinterpret_cast<u8*>(buffer))) return false; + *buffer = Common::swap64(*buffer); return true; } |
