mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-06 11:22:15 +02:00
Fix fsdevSetArchiveBit relative path
This commit is contained in:
parent
8414bd51ad
commit
c8df6fccbe
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user