diff options
| author | Matthew Parlane <parlane@gmail.com> | 2017-01-24 08:19:07 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-24 08:19:07 +1300 |
| commit | ee065181d77924541a76e6401a9e752976e32100 (patch) | |
| tree | 73191c8e8fe07c7a62fcc9811416edc84c03066f /Source/Core | |
| parent | d97a2aba8d70259be420dbb4a0af918ba536a6b6 (diff) | |
| parent | 0d8ddfb7d93548ea3bba466726af135da4d52114 (diff) | |
Merge pull request #4730 from leoetlino/tmdreader
TMDReader: Add a way to get the required IOS version
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/IOS/ES/Formats.cpp | 5 | ||||
| -rw-r--r-- | Source/Core/Core/IOS/ES/Formats.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/Core/IOS/ES/Formats.cpp b/Source/Core/Core/IOS/ES/Formats.cpp index 8e0879ef87..6a9053fbee 100644 --- a/Source/Core/Core/IOS/ES/Formats.cpp +++ b/Source/Core/Core/IOS/ES/Formats.cpp @@ -51,6 +51,11 @@ bool TMDReader::IsValid() const return true; } +u64 TMDReader::GetIOSId() const +{ + return Common::swap64(m_bytes.data() + 0x184); +} + u64 TMDReader::GetTitleId() const { return Common::swap64(m_bytes.data() + 0x18C); diff --git a/Source/Core/Core/IOS/ES/Formats.h b/Source/Core/Core/IOS/ES/Formats.h index 33171b8aec..775f602451 100644 --- a/Source/Core/Core/IOS/ES/Formats.h +++ b/Source/Core/Core/IOS/ES/Formats.h @@ -29,6 +29,7 @@ public: bool IsValid() const; + u64 GetIOSId() const; u64 GetTitleId() const; struct Content |
