mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Volume: Use more appropriate types for some returned values
Disc number is changed from bool to u8, and revision is changed from int to u16 (WADs can use all 16 bits, but discs can only use 8 bits).
This commit is contained in:
@ -181,7 +181,7 @@ std::string CVolumeWiiCrypted::GetMakerID() const
|
||||
return makerID;
|
||||
}
|
||||
|
||||
int CVolumeWiiCrypted::GetRevision() const
|
||||
u16 CVolumeWiiCrypted::GetRevision() const
|
||||
{
|
||||
if (!m_pReader)
|
||||
return 0;
|
||||
@ -243,14 +243,13 @@ bool CVolumeWiiCrypted::IsWiiDisc() const
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CVolumeWiiCrypted::IsDiscTwo() const
|
||||
u8 CVolumeWiiCrypted::GetDiscNumber() const
|
||||
{
|
||||
u8 disc_two_check;
|
||||
m_pReader->Read(6, 1, &disc_two_check);
|
||||
return (disc_two_check == 1);
|
||||
u8 disc_number;
|
||||
m_pReader->Read(6, 1, &disc_number);
|
||||
return disc_number;
|
||||
}
|
||||
|
||||
|
||||
u64 CVolumeWiiCrypted::GetSize() const
|
||||
{
|
||||
if (m_pReader)
|
||||
|
Reference in New Issue
Block a user