diff options
| author | Rachel Bryk <RachelBryk@gmail.com> | 2014-11-14 20:59:39 -0500 |
|---|---|---|
| committer | Rachel Bryk <RachelBryk@gmail.com> | 2014-11-14 21:06:26 -0500 |
| commit | fa5e3ec29244186a67aeaf68da9a8bb35eb8c4fb (patch) | |
| tree | 010374497844a846b72400e1009f6e6779b4c00c /Source/Core/DiscIO/VolumeWiiCrypted.cpp | |
| parent | 68c5758151f696c36b5184ef8bf541bacb68140f (diff) | |
Implement GetRevision() for wii disks.
Diffstat (limited to 'Source/Core/DiscIO/VolumeWiiCrypted.cpp')
| -rw-r--r-- | Source/Core/DiscIO/VolumeWiiCrypted.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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<std::string> CVolumeWiiCrypted::GetNames() const { std::vector<std::string> names; |
