mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00: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:
parent
d1d284e784
commit
301218a103
15 changed files with 54 additions and 49 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue