mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Volume: Use ReadSwapped more
Most of the Volume code was written before this convenience function was added. Let's use it more. Also deleting m_pReader nullptr checks that are unnecessary because of Read (which ReadSwapped calls) already having a nullptr check.
This commit is contained in:
@ -112,11 +112,7 @@ std::string CVolumeWAD::GetMakerID() const
|
||||
|
||||
bool CVolumeWAD::GetTitleID(u64* buffer) const
|
||||
{
|
||||
if (!Read(m_offset + 0x01DC, sizeof(u64), reinterpret_cast<u8*>(buffer)))
|
||||
return false;
|
||||
|
||||
*buffer = Common::swap64(*buffer);
|
||||
return true;
|
||||
return ReadSwapped(m_offset + 0x01DC, buffer, false);
|
||||
}
|
||||
|
||||
u16 CVolumeWAD::GetRevision() const
|
||||
|
Reference in New Issue
Block a user