Code: Select all
//only including this part of the code for clarity
TimeCalendarTime dumpdreamtime = util::getDreamTime();
char dreamtime[128];
const char* date_format = "%02d-%02d-%04d_at_%02d-%02d";
sprintf(dreamtime, date_format, dumpdreamtime.day, dumpdreamtime.month, dumpdreamtime.year, dumpdreamtime.hour, dumpdreamtime.minute);
std::string strislandname = util::getIslandNameASCII();
std::string g_pathOut = /config/luna/dump/;
g_pathOut += strislandname.empty() ? "[DA-" + util::getDreamAddrString(g_mainAddr) + "]" : ("[DA-" + util::getDreamAddrString(g_mainAddr) + "] " + strislandname);
util::PrintToNXLink((g_pathOut + "\n").c_str());
//here is the FS stuff
Result rc = fsFsCreateDirectory(&g_fsSdmc, g_pathOut.c_str());
util::PrintResultToNXLink(rc);
//boom, issue
g_pathOut += "/" + std::string(dreamtime);
util::PrintToNXLink((g_pathOut + "\n").c_str());
rc = fsFsCreateDirectory(&g_fsSdmc, g_pathOut.c_str());
util::PrintResultToNXLink(rc);
Code: Select all
/config/luna/dump/[DA-8037-5177-6075] Andromeda
Result: 2000-0000 | Value: 0x0
/config/luna/dump/[DA-8037-5177-6075] Andromeda/28-03-2022_at_07-07
Result: 2001-0106 | Value: 0xD401
I checked the error code on SwitchBrew, which Note reads "InvalidCurrentMemory".
That seems awfully ambiguous to me, so now I have no real idea why it has an issue with the filepath specified. i tried multiple formats, but couldn't find one, where it doesn't error out.
I would appreciate further assistance, thank you for your time.