From dfa7e4d0e11e262457fd9dec0151ba3d48d774df Mon Sep 17 00:00:00 2001 From: XorTroll <33005497+XorTroll@users.noreply.github.com> Date: Wed, 14 Aug 2019 15:52:40 +0200 Subject: [PATCH] Update header with new function --- nx/include/switch/runtime/devices/fs_dev.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nx/include/switch/runtime/devices/fs_dev.h b/nx/include/switch/runtime/devices/fs_dev.h index 50e84866..d00ecd48 100644 --- a/nx/include/switch/runtime/devices/fs_dev.h +++ b/nx/include/switch/runtime/devices/fs_dev.h @@ -25,10 +25,13 @@ typedef struct /// Initializes and mounts the sdmc device if accessible. Also initializes current working directory to point to the folder containing the path to the executable (argv[0]), if it is provided by the environment. Result fsdevMountSdmc(void); -/// Mounts the input fs with the specified device name. fsdev will handle closing the fs when required, including when fsdevMountDevice() fails. +/// Mounts the input fs with the specified device name. fsdev will handle closing the fs when required (this can be avoided by unmounting it with fsdevDeleteDevice), including when fsdevMountDevice() fails. /// Returns -1 when any errors occur. int fsdevMountDevice(const char *name, FsFileSystem fs); +/// Unmounts the specified device without closing its fs service. +int fsdevDeleteDevice(const char *name); + /// Unmounts the specified device. int fsdevUnmountDevice(const char *name);