Only exempt the SDMC archive from the custom session

This commit is contained in:
piepie62 2020-02-26 16:28:06 -07:00
parent d1addf37b0
commit 74cbb85c8e

View File

@ -287,8 +287,6 @@ static int _archiveMountDevice(FS_Archive archive,
{
archive_fsdevice *device = NULL;
fsExemptFromSession(archive);
if (archiveFindDevice(deviceName)) //Device is already mounted with the same name
goto _fail;
@ -328,13 +326,6 @@ _fail:
return -1;
}
/*! Initialize archive device */
Result archiveMountArchive(FS_Archive archive,
const char *deviceName)
{
return _archiveMountDevice(archive, deviceName, NULL);
}
Result archiveMount(FS_ArchiveID archiveID,
FS_Path archivePath,
const char *deviceName)
@ -373,6 +364,7 @@ Result archiveMountSdmc(void)
rc = FSUSER_OpenArchive(&sdmcArchive, ARCHIVE_SDMC, sdmcPath);
if(R_SUCCEEDED(rc))
{
fsExemptFromSession(sdmcArchive);
archive_fsdevice* device;
rc = _archiveMountDevice(sdmcArchive, "sdmc", &device);