Only exempt the SDMC archive from the custom session
This commit is contained in:
parent
d1addf37b0
commit
74cbb85c8e
@ -287,8 +287,6 @@ static int _archiveMountDevice(FS_Archive archive,
|
|||||||
{
|
{
|
||||||
archive_fsdevice *device = NULL;
|
archive_fsdevice *device = NULL;
|
||||||
|
|
||||||
fsExemptFromSession(archive);
|
|
||||||
|
|
||||||
if (archiveFindDevice(deviceName)) //Device is already mounted with the same name
|
if (archiveFindDevice(deviceName)) //Device is already mounted with the same name
|
||||||
goto _fail;
|
goto _fail;
|
||||||
|
|
||||||
@ -328,13 +326,6 @@ _fail:
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! Initialize archive device */
|
|
||||||
Result archiveMountArchive(FS_Archive archive,
|
|
||||||
const char *deviceName)
|
|
||||||
{
|
|
||||||
return _archiveMountDevice(archive, deviceName, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
Result archiveMount(FS_ArchiveID archiveID,
|
Result archiveMount(FS_ArchiveID archiveID,
|
||||||
FS_Path archivePath,
|
FS_Path archivePath,
|
||||||
const char *deviceName)
|
const char *deviceName)
|
||||||
@ -373,6 +364,7 @@ Result archiveMountSdmc(void)
|
|||||||
rc = FSUSER_OpenArchive(&sdmcArchive, ARCHIVE_SDMC, sdmcPath);
|
rc = FSUSER_OpenArchive(&sdmcArchive, ARCHIVE_SDMC, sdmcPath);
|
||||||
if(R_SUCCEEDED(rc))
|
if(R_SUCCEEDED(rc))
|
||||||
{
|
{
|
||||||
|
fsExemptFromSession(sdmcArchive);
|
||||||
archive_fsdevice* device;
|
archive_fsdevice* device;
|
||||||
rc = _archiveMountDevice(sdmcArchive, "sdmc", &device);
|
rc = _archiveMountDevice(sdmcArchive, "sdmc", &device);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user