From c8df6fccbe5f0942eea8b09e05776d172f287a4d Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Fri, 9 Nov 2018 18:30:07 -0800 Subject: [PATCH] Fix fsdevSetArchiveBit relative path --- nx/source/runtime/devices/fs_dev.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nx/source/runtime/devices/fs_dev.c b/nx/source/runtime/devices/fs_dev.c index b01ac1a4..aed1ec3e 100644 --- a/nx/source/runtime/devices/fs_dev.c +++ b/nx/source/runtime/devices/fs_dev.c @@ -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 */