summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorRachel Bryk <RachelBryk@gmail.com>2014-11-14 20:59:39 -0500
committerRachel Bryk <RachelBryk@gmail.com>2014-11-14 21:06:26 -0500
commitfa5e3ec29244186a67aeaf68da9a8bb35eb8c4fb (patch)
tree010374497844a846b72400e1009f6e6779b4c00c /Source
parent68c5758151f696c36b5184ef8bf541bacb68140f (diff)
Implement GetRevision() for wii disks.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DiscIO/VolumeGC.cpp6
-rw-r--r--Source/Core/DiscIO/VolumeWiiCrypted.cpp12
-rw-r--r--Source/Core/DiscIO/VolumeWiiCrypted.h1
3 files changed, 16 insertions, 3 deletions
diff --git a/Source/Core/DiscIO/VolumeGC.cpp b/Source/Core/DiscIO/VolumeGC.cpp
index ef0e56a21d..57303b13e7 100644
--- a/Source/Core/DiscIO/VolumeGC.cpp
+++ b/Source/Core/DiscIO/VolumeGC.cpp
@@ -92,11 +92,11 @@ int CVolumeGC::GetRevision() const
if (!m_pReader)
return 0;
- u8 Revision;
- if (!Read(7, 1, &Revision))
+ u8 revision;
+ if (!Read(7, 1, &revision))
return 0;
- return Revision;
+ return revision;
}
std::vector<std::string> CVolumeGC::GetNames() const
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;
diff --git a/Source/Core/DiscIO/VolumeWiiCrypted.h b/Source/Core/DiscIO/VolumeWiiCrypted.h
index 6b1b3855ad..3dd09a08f5 100644
--- a/Source/Core/DiscIO/VolumeWiiCrypted.h
+++ b/Source/Core/DiscIO/VolumeWiiCrypted.h
@@ -36,6 +36,7 @@ public:
ECountry GetCountry() const override;
u64 GetSize() const override;
u64 GetRawSize() const override;
+ int GetRevision() const override;
bool SupportsIntegrityCheck() const override { return true; }
bool CheckIntegrity() const override;