mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 12:48:57 +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
|
@ -84,7 +84,7 @@ std::string CVolumeGC::GetMakerID() const
|
|||
return makerID;
|
||||
}
|
||||
|
||||
int CVolumeGC::GetRevision() const
|
||||
u16 CVolumeGC::GetRevision() const
|
||||
{
|
||||
if (!m_pReader)
|
||||
return 0;
|
||||
|
@ -265,11 +265,11 @@ u64 CVolumeGC::GetRawSize() const
|
|||
return 0;
|
||||
}
|
||||
|
||||
bool CVolumeGC::IsDiscTwo() const
|
||||
u8 CVolumeGC::GetDiscNumber() const
|
||||
{
|
||||
u8 disc_two_check;
|
||||
Read(6, 1, &disc_two_check);
|
||||
return (disc_two_check == 1);
|
||||
u8 disc_number;
|
||||
Read(6, 1, &disc_number);
|
||||
return disc_number;
|
||||
}
|
||||
|
||||
bool CVolumeGC::LoadBannerFile() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue