DiscIO: Do swapping in GetTitleID implementations

Gets rid of external swaps at every usage.
This commit is contained in:
Lioncash
2015-09-22 13:25:54 -04:00
parent 5d774df1e8
commit 4b9b82e000
10 changed files with 28 additions and 30 deletions

View File

@ -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;
}