VolumeWiiCrypted: Implement IsDiscTwo()

Allows us to check if a Wii game is marked as Disc 2.
This commit is contained in:
Stevoisiak 2015-02-26 17:10:18 -05:00
parent f72a559958
commit ede4977d12
2 changed files with 9 additions and 0 deletions

View File

@ -237,6 +237,14 @@ bool CVolumeWiiCrypted::IsWiiDisc() const
return true; return true;
} }
bool CVolumeWiiCrypted::IsDiscTwo() const
{
bool discTwo = false;
m_pReader->Read(6, 1, (u8*)&discTwo);
return discTwo;
}
u64 CVolumeWiiCrypted::GetSize() const u64 CVolumeWiiCrypted::GetSize() const
{ {
if (m_pReader) if (m_pReader)

View File

@ -34,6 +34,7 @@ public:
u32 GetFSTSize() const override; u32 GetFSTSize() const override;
std::string GetApploaderDate() const override; std::string GetApploaderDate() const override;
bool IsDiscTwo() const override;
bool IsWiiDisc() const override; bool IsWiiDisc() const override;
bool SupportsIntegrityCheck() const override { return true; } bool SupportsIntegrityCheck() const override { return true; }
bool CheckIntegrity() const override; bool CheckIntegrity() const override;