From fa5e3ec29244186a67aeaf68da9a8bb35eb8c4fb Mon Sep 17 00:00:00 2001 From: Rachel Bryk Date: Fri, 14 Nov 2014 20:59:39 -0500 Subject: Implement GetRevision() for wii disks. --- Source/Core/DiscIO/VolumeWiiCrypted.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Source/Core/DiscIO/VolumeWiiCrypted.cpp') diff --git a/Source/Core/DiscIO/VolumeWiiCrypted.cpp b/Source/Core/DiscIO/VolumeWiiCrypted.cpp index 73488bbb9c..354779b90c 100644 --- a/Source/Core/DiscIO/VolumeWiiCrypted.cpp +++ b/Source/Core/DiscIO/VolumeWiiCrypted.cpp @@ -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 CVolumeWiiCrypted::GetNames() const { std::vector names; -- cgit v1.2.3