| 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 |
no test coverage detected