summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
authorSketch <75850871+SketchMaster2001@users.noreply.github.com>2022-10-31 21:02:19 -0400
committerSketch <75850871+SketchMaster2001@users.noreply.github.com>2022-11-17 17:54:06 -0500
commit2fd9852ca89e4f07f6231ec3ddab5656f2b7856c (patch)
treeeae4514ea2e067a32876f23920d0e41f55205f47 /Source/Core/Common
parentd3718b1b81e64db540005f3ced6a0edfde76f411 (diff)
IOS/ES: Add support for V1Ticket
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/NandPaths.cpp6
-rw-r--r--Source/Core/Common/NandPaths.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/Common/NandPaths.cpp b/Source/Core/Common/NandPaths.cpp
index 8fc33200d7..00f5eb235a 100644
--- a/Source/Core/Common/NandPaths.cpp
+++ b/Source/Core/Common/NandPaths.cpp
@@ -41,6 +41,12 @@ std::string GetTicketFileName(u64 title_id, std::optional<FromWhichRoot> from)
static_cast<u32>(title_id >> 32), static_cast<u32>(title_id));
}
+std::string GetV1TicketFileName(u64 title_id, std::optional<FromWhichRoot> from)
+{
+ return fmt::format("{}/ticket/{:08x}/{:08x}.tv1", RootUserPath(from),
+ static_cast<u32>(title_id >> 32), static_cast<u32>(title_id));
+}
+
std::string GetTitlePath(u64 title_id, std::optional<FromWhichRoot> from)
{
return fmt::format("{}/title/{:08x}/{:08x}", RootUserPath(from), static_cast<u32>(title_id >> 32),
diff --git a/Source/Core/Common/NandPaths.h b/Source/Core/Common/NandPaths.h
index 707cb87c3c..01bd8aa3ed 100644
--- a/Source/Core/Common/NandPaths.h
+++ b/Source/Core/Common/NandPaths.h
@@ -26,6 +26,7 @@ std::string RootUserPath(FromWhichRoot from);
std::string GetImportTitlePath(u64 title_id, std::optional<FromWhichRoot> from = {});
std::string GetTicketFileName(u64 title_id, std::optional<FromWhichRoot> from = {});
+std::string GetV1TicketFileName(u64 title_id, std::optional<FromWhichRoot> from = {});
std::string GetTitlePath(u64 title_id, std::optional<FromWhichRoot> from = {});
std::string GetTitleDataPath(u64 title_id, std::optional<FromWhichRoot> from = {});
std::string GetTitleContentPath(u64 title_id, std::optional<FromWhichRoot> from = {});