mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #1546 from RachelBryk/iso-revision
Implement GetRevision() for wii disks.
This commit is contained in:
commit
4497233663
@ -92,11 +92,11 @@ int CVolumeGC::GetRevision() const
|
||||
if (!m_pReader)
|
||||
return 0;
|
||||
|
||||
u8 Revision;
|
||||
if (!Read(7, 1, &Revision))
|
||||
u8 revision;
|
||||
if (!Read(7, 1, &revision))
|
||||
return 0;
|
||||
|
||||
return Revision;
|
||||
return revision;
|
||||
}
|
||||
|
||||
std::vector<std::string> CVolumeGC::GetNames() const
|
||||
|
@ -154,6 +154,18 @@ std::string CVolumeWiiCrypted::GetMakerID() const
|
||||
return makerID;
|
||||
}
|
||||
|
||||
int CVolumeWiiCrypted::GetRevision() const
|
||||
{
|
||||
if (!m_pReader)
|
||||
return 0;
|
||||
|
||||
u8 revision;
|
||||
if (!Read(7, 1, &revision))
|
||||
return 0;
|
||||
|
||||
return revision;
|
||||
}
|
||||
|
||||
std::vector<std::string> CVolumeWiiCrypted::GetNames() const
|
||||
{
|
||||
std::vector<std::string> names;
|
||||
|
@ -36,6 +36,7 @@ public:
|
||||
ECountry GetCountry() const override;
|
||||
u64 GetSize() const override;
|
||||
u64 GetRawSize() const override;
|
||||
int GetRevision() const override;
|
||||
|
||||
bool SupportsIntegrityCheck() const override { return true; }
|
||||
bool CheckIntegrity() const override;
|
||||
|
Loading…
Reference in New Issue
Block a user