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

Method extdataDelete

3ds/source/script/scripthost.cpp:450–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448 }
449
450 int extdataDelete(u32 extdataId) override
451 {
452 // Asked first so a missing archive reads as -2 rather than as
453 // whichever Result FS picks for one.
454 if (!extdataExists(extdataId)) {
455 return -2;
456 }
457
458 const Result res = FSUSER_DeleteExtSaveData(sdExtdataInfo(extdataId));
459 if (R_FAILED(res)) {
460 Logging::error("[script] extdata_delete: id 0x{:08X} failed with result 0x{:08X}.", extdataId, res);
461 return (int)res;
462 }
463 Logging::info("[script] extdata_delete: id 0x{:08X} destroyed.", extdataId);
464 return 0;
465 }
466
467 // The NAND CID: 16 bytes burnt into this console's internal storage,
468 // 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