| 323 | } |
| 324 | |
| 325 | Result archiveMount(FS_ArchiveID archiveID, |
| 326 | FS_Path archivePath, |
| 327 | const char *deviceName) |
| 328 | { |
| 329 | FS_Archive ar; |
| 330 | Result rc = 0; |
| 331 | rc = FSUSER_OpenArchive(&ar, archiveID, archivePath); |
| 332 | if (R_SUCCEEDED(rc)) |
| 333 | { |
| 334 | archive_fsdevice* device = NULL; |
| 335 | rc = _archiveMountDevice(ar, deviceName, &device); |
| 336 | if (R_SUCCEEDED(rc)) |
| 337 | { |
| 338 | /* Special handling for ExtData is necessary */ |
| 339 | if (archiveID == ARCHIVE_EXTDATA || archiveID == ARCHIVE_SHARED_EXTDATA || archiveID == ARCHIVE_BOSS_EXTDATA || archiveID == ARCHIVE_EXTDATA_AND_BOSS_EXTDATA) |
| 340 | { |
| 341 | device->is_extdata = true; |
| 342 | } |
| 343 | } |
| 344 | } |
| 345 | return rc; |
| 346 | } |
| 347 | |
| 348 | /*! Initialize SDMC device */ |
| 349 | Result archiveMountSdmc(void) |
nothing calls this directly
no test coverage detected