diff options
| author | flacs <tilkax@gmail.com> | 2015-09-23 18:56:57 +0200 |
|---|---|---|
| committer | flacs <tilkax@gmail.com> | 2015-09-23 18:56:57 +0200 |
| commit | c1ee0e7829a4062b503eb36aa50d0fbeec9d5734 (patch) | |
| tree | 9885ec1ff75da298a6a3a8a54776f0932cd516c1 /Source/Core/DiscIO/VolumeWad.cpp | |
| parent | cf131b133ed81382d893a357e18ab07d4d8b4505 (diff) | |
| parent | 4b9b82e00016cbb8aa3c8a45bd32aea460f28c07 (diff) | |
Merge pull request #3078 from lioncash/titleid
DiscIO: Do swapping in GetTitleID implementations
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; } |
