title import: create all title/ subdirectories

This commit is contained in:
Nadia Holmquist Pedersen 2021-12-18 02:56:27 +01:00 committed by GitHub
parent 203cf5164b
commit f39eeeb9dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1020,6 +1020,8 @@ bool ImportTitle(const char* appfile, u8* tmd, bool readonly)
// folder
sprintf(fname, "0:/title/%08x", titleid0);
f_mkdir(fname);
sprintf(fname, "0:/title/%08x/%08x", titleid0, titleid1);
f_mkdir(fname);
sprintf(fname, "0:/title/%08x/%08x/content", titleid0, titleid1);