mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -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:
@ -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
|
||||
|
Reference in New Issue
Block a user