From ede4977d12029fc488e6b8629041cbca6ccf0153 Mon Sep 17 00:00:00 2001 From: Stevoisiak Date: Thu, 26 Feb 2015 17:10:18 -0500 Subject: [PATCH] VolumeWiiCrypted: Implement IsDiscTwo() Allows us to check if a Wii game is marked as Disc 2. --- Source/Core/DiscIO/VolumeWiiCrypted.cpp | 8 ++++++++ Source/Core/DiscIO/VolumeWiiCrypted.h | 1 + 2 files changed, 9 insertions(+) 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;