| 215 | } |
| 216 | |
| 217 | int savOpenExtdata(u32 extdataId) override |
| 218 | { |
| 219 | const int slot = freeSlot(); |
| 220 | if (slot < 0) { |
| 221 | return -2; |
| 222 | } |
| 223 | |
| 224 | FS_Archive archive; |
| 225 | const Result res = Archive::extdata(&archive, extdataId); |
| 226 | if (R_FAILED(res)) { |
| 227 | return (int)res; |
| 228 | } |
| 229 | |
| 230 | // Ordinary extdata, just reached by id instead of through a Title: |
| 231 | // no commit and no secure value, like savOpen's kind == 1 path. |
| 232 | mSlots[slot].arch = ArchiveHandle::fromFs(archive); |
| 233 | mSlots[slot].commitable = false; |
| 234 | mSlots[slot].uniqueId = 0; |
| 235 | return slot; |
| 236 | } |
| 237 | |
| 238 | int savOpenSystem(u32 saveId) override |
| 239 | { |
no outgoing calls
no test coverage detected