diff options
| author | John Chadwick <johnwchadwick@gmail.com> | 2013-04-16 22:29:01 -0500 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2013-04-16 22:39:05 -0500 |
| commit | 1e6dacf1e47535775ed42818bb3cb5432d942f20 (patch) | |
| tree | 82e7a722c177fb7e527b8e9f74491f10ee5f0936 /Source/Core/DiscIO/Src/VolumeGC.cpp | |
| parent | 2316cb6876e6d79584ce0cc50771d2fb8495fe45 (diff) | |
Make dolphin aware of disc revision numbers. Display them under game properties and use them in netplay.
Patch by johnwchadwick.
Fixed issue 6243.
Diffstat (limited to 'Source/Core/DiscIO/Src/VolumeGC.cpp')
| -rw-r--r-- | Source/Core/DiscIO/Src/VolumeGC.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/Core/DiscIO/Src/VolumeGC.cpp b/Source/Core/DiscIO/Src/VolumeGC.cpp index 8d36a9c166..d4ef327b30 100644 --- a/Source/Core/DiscIO/Src/VolumeGC.cpp +++ b/Source/Core/DiscIO/Src/VolumeGC.cpp @@ -91,6 +91,18 @@ std::string CVolumeGC::GetMakerID() const return makerID; } +int CVolumeGC::GetRevision() const +{ + if (!m_pReader) + return 0; + + u8 Revision; + if (!Read(7, 1, &Revision)) + return 0; + + return Revision; +} + std::vector<std::string> CVolumeGC::GetNames() const { std::vector<std::string> names; |
