mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00:00
DiscIO: Do swapping in GetTitleID implementations
Gets rid of external swaps at every usage.
This commit is contained in:
parent
5d774df1e8
commit
4b9b82e000
10 changed files with 28 additions and 30 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue