diff options
| author | Stevoisiak <Stevoisiak@gmail.com> | 2015-02-26 17:10:18 -0500 |
|---|---|---|
| committer | Stevoisiak <Stevoisiak@gmail.com> | 2015-02-26 17:10:18 -0500 |
| commit | ede4977d12029fc488e6b8629041cbca6ccf0153 (patch) | |
| tree | c5518aa221efff9a457b4fab44bc75148ab47ffc /Source/Core/DiscIO | |
| parent | f72a559958027ac046dbb00f785bbcc33ab2d226 (diff) | |
VolumeWiiCrypted: Implement IsDiscTwo()
Allows us to check if a Wii game is marked as Disc 2.
Diffstat (limited to 'Source/Core/DiscIO')
| -rw-r--r-- | Source/Core/DiscIO/VolumeWiiCrypted.cpp | 8 | ||||
| -rw-r--r-- | Source/Core/DiscIO/VolumeWiiCrypted.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Source/Core/DiscIO/VolumeWiiCrypted.cpp b/Source/Core/DiscIO/VolumeWiiCrypted.cpp index d73db3274c..6ea1a166b1 100644 --- a/Source/Core/DiscIO/VolumeWiiCrypted.cpp +++ b/Source/Core/DiscIO/VolumeWiiCrypted.cpp @@ -237,6 +237,14 @@ bool CVolumeWiiCrypted::IsWiiDisc() const return true; } +bool CVolumeWiiCrypted::IsDiscTwo() const +{ + bool discTwo = false; + m_pReader->Read(6, 1, (u8*)&discTwo); + return discTwo; +} + + u64 CVolumeWiiCrypted::GetSize() const { if (m_pReader) diff --git a/Source/Core/DiscIO/VolumeWiiCrypted.h b/Source/Core/DiscIO/VolumeWiiCrypted.h index e153d83065..4816bc2ebc 100644 --- a/Source/Core/DiscIO/VolumeWiiCrypted.h +++ b/Source/Core/DiscIO/VolumeWiiCrypted.h @@ -34,6 +34,7 @@ public: u32 GetFSTSize() const override; std::string GetApploaderDate() const override; + bool IsDiscTwo() const override; bool IsWiiDisc() const override; bool SupportsIntegrityCheck() const override { return true; } bool CheckIntegrity() const override; |
