MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / extdataDelete

Method extdataDelete

3ds/source/script/scripthost.cpp:415–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413 }
414
415 int extdataDelete(u32 extdataId) override
416 {
417 // Asked first so a missing archive reads as -2 rather than as
418 // whichever Result FS picks for one.
419 if (!extdataExists(extdataId)) {
420 return -2;
421 }
422
423 const Result res = FSUSER_DeleteExtSaveData(sdExtdataInfo(extdataId));
424 if (R_FAILED(res)) {
425 Logging::error("[script] extdata_delete: id 0x{:08X} failed with result 0x{:08X}.", extdataId, res);
426 return (int)res;
427 }
428 Logging::info("[script] extdata_delete: id 0x{:08X} destroyed.", extdataId);
429 return 0;
430 }
431
432 // The NAND CID: 16 bytes burnt into this console's internal storage,
433 // reachable only by asking FS (already initialised, so no service of our

Callers 1

ckpt_extdata_deleteFunction · 0.45

Calls 4

extdataExistsFunction · 0.85
sdExtdataInfoFunction · 0.85
errorFunction · 0.50
infoFunction · 0.50

Tested by

no test coverage detected