summaryrefslogtreecommitdiff
path: root/Source/Core/Common/NandPaths.cpp
diff options
context:
space:
mode:
authorMatthew Parlane <parlane@gmail.com>2017-03-12 16:14:17 +1300
committerGitHub <noreply@github.com>2017-03-12 16:14:17 +1300
commitb1bd23142198670c53406b1d9fc256a9e8602e37 (patch)
treeb6a4e85083240530e7fe9f73491d822c43aec3f7 /Source/Core/Common/NandPaths.cpp
parentc62fc192efef1ad11210a26d577803b6e60e649a (diff)
parent62ea76e04cacad6e27726a7e6e2f87d0218005c2 (diff)
Merge pull request #5020 from leoetlino/es-safer-import
IOS/ES: Implement ES_AddTitleCancel (and slightly safer import process)
Diffstat (limited to 'Source/Core/Common/NandPaths.cpp')
-rw-r--r--Source/Core/Common/NandPaths.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/Common/NandPaths.cpp b/Source/Core/Common/NandPaths.cpp
index 3984d2d620..9206fbe4e6 100644
--- a/Source/Core/Common/NandPaths.cpp
+++ b/Source/Core/Common/NandPaths.cpp
@@ -23,6 +23,13 @@ std::string RootUserPath(FromWhichRoot from)
return File::GetUserPath(idx);
}
+std::string GetImportTitlePath(u64 title_id, FromWhichRoot from)
+{
+ return RootUserPath(from) + StringFromFormat("/import/%08x/%08x",
+ static_cast<u32>(title_id >> 32),
+ static_cast<u32>(title_id));
+}
+
std::string GetTicketFileName(u64 _titleID, FromWhichRoot from)
{
return StringFromFormat("%s/ticket/%08x/%08x.tik", RootUserPath(from).c_str(),