From 0d8ddfb7d93548ea3bba466726af135da4d52114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Mon, 23 Jan 2017 15:14:23 +0100 Subject: [PATCH] TMDReader: Add a way to get the required IOS version --- Source/Core/Core/IOS/ES/Formats.cpp | 5 +++++ Source/Core/Core/IOS/ES/Formats.h | 1 + 2 files changed, 6 insertions(+) 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