Fix fsdevSetArchiveBit relative path

This commit is contained in:
Michael Scire 2018-11-09 18:30:07 -08:00
parent 8414bd51ad
commit c8df6fccbe

View File

@ -369,13 +369,13 @@ Result fsdevCommitDevice(const char *name)
}
Result fsdevSetArchiveBit(const char *path) {
fsdev_fsdevice *device;
char fs_path[FS_MAX_PATH];
fsdev_fsdevice *device = NULL;
device = fsdevFindDevice(path);
if(device==NULL)
if(fsdev_getfspath(_REENT, path, &device, fs_path)==-1)
return MAKERESULT(Module_Libnx, LibnxError_NotFound);
return fsFsSetArchiveBit(&device->fs, path);
return fsFsSetArchiveBit(&device->fs, fs_path);
}
/*! Initialize SDMC device */