mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-05 19:02:14 +02:00
Add fsdevSetArchiveBit wrapper
This commit is contained in:
parent
776e313413
commit
8414bd51ad
@ -42,5 +42,8 @@ FsFileSystem* fsdevGetDeviceFileSystem(const char *name);
|
||||
/// Returns the FsFileSystem for the default device (SD card), if mounted. Used internally by romfs_dev.
|
||||
FsFileSystem* fsdevGetDefaultFileSystem(void);
|
||||
|
||||
/// This calls fsFsSetArchiveBit on the filesystem specified by the input absolute path.
|
||||
Result fsdevSetArchiveBit(const char *path);
|
||||
|
||||
/// Unmounts all devices and cleans up any resources used by the FS driver.
|
||||
Result fsdevUnmountAll(void);
|
||||
|
@ -368,6 +368,16 @@ Result fsdevCommitDevice(const char *name)
|
||||
return fsFsCommit(&device->fs);
|
||||
}
|
||||
|
||||
Result fsdevSetArchiveBit(const char *path) {
|
||||
fsdev_fsdevice *device;
|
||||
|
||||
device = fsdevFindDevice(path);
|
||||
if(device==NULL)
|
||||
return MAKERESULT(Module_Libnx, LibnxError_NotFound);
|
||||
|
||||
return fsFsSetArchiveBit(&device->fs, path);
|
||||
}
|
||||
|
||||
/*! Initialize SDMC device */
|
||||
Result fsdevMountSdmc(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user