From ef3232cd746d3f9092aff22b3a8ee6a34f717805 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Wed, 16 Aug 2017 04:35:03 +0200 Subject: [PATCH] WFSI: Create meta/work/save dirs when applying title profile. --- Source/Core/Core/IOS/WFS/WFSI.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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: