From 203cf5164b31f72560c6fb32916713975a13da68 Mon Sep 17 00:00:00 2001 From: Nadia Holmquist Pedersen Date: Thu, 16 Dec 2021 06:33:32 +0100 Subject: [PATCH] Create ticket subdirectory if missing during title import --- src/DSi_NAND.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DSi_NAND.cpp b/src/DSi_NAND.cpp index 5f054843..366dfbdd 100644 --- a/src/DSi_NAND.cpp +++ b/src/DSi_NAND.cpp @@ -1009,6 +1009,8 @@ bool ImportTitle(const char* appfile, u8* tmd, bool readonly) u32 nwrite; // ticket + sprintf(fname, "0:/ticket/%08x", titleid0); + f_mkdir(fname); sprintf(fname, "0:/ticket/%08x/%08x.tik", titleid0, titleid1); if (!CreateTicket(fname, *(u32*)&tmd[0x18C], *(u32*)&tmd[0x190], header[0x1E]))