summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2017-08-16 04:35:03 +0200
committerPierre Bourdon <delroth@gmail.com>2017-08-22 23:13:14 +0200
commitef3232cd746d3f9092aff22b3a8ee6a34f717805 (patch)
treecac119c49ecd2a407ab1dbb173d7c5d224013701 /Source
parentc0b3a684410968d2a9f218a7f56dffe7b75d1d80 (diff)
WFSI: Create meta/work/save dirs when applying title profile.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/IOS/WFS/WFSI.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/Core/IOS/WFS/WFSI.cpp b/Source/Core/Core/IOS/WFS/WFSI.cpp
index cf8df1e8a6..ec29a7d5bb 100644
--- a/Source/Core/Core/IOS/WFS/WFSI.cpp
+++ b/Source/Core/Core/IOS/WFS/WFSI.cpp
@@ -247,6 +247,13 @@ IPCCommandResult WFSI::IOCtl(const IOCtlRequest& request)
m_title_id_str.c_str());
File::CreateFullPath(WFS::NativePath(m_base_extract_path));
+ for (auto dir : {"work", "meta", "save"})
+ {
+ std::string path = StringFromFormat("/vol/%s/_install/%s/%s", m_device_name.c_str(),
+ m_title_id_str.c_str(), dir);
+ File::CreateFullPath(WFS::NativePath(path));
+ }
+
break;
case IOCTL_WFSI_GET_TMD: