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