diff options
| author | Lioncash <mathew1800@gmail.com> | 2014-11-14 21:14:54 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2014-11-14 21:14:54 -0500 |
| commit | 4497233663c1d688a2f2a22b1fb1d3df8f339ebc (patch) | |
| tree | 010374497844a846b72400e1009f6e6779b4c00c /Source/Core/DiscIO/VolumeWiiCrypted.cpp | |
| parent | 68c5758151f696c36b5184ef8bf541bacb68140f (diff) | |
| parent | fa5e3ec29244186a67aeaf68da9a8bb35eb8c4fb (diff) | |
Merge pull request #1546 from RachelBryk/iso-revision
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; |
