From 8a5ddf177abe8f1cc89e4a93c86fce7e41be4039 Mon Sep 17 00:00:00 2001 From: hexkyz Date: Sun, 22 Mar 2026 20:25:37 +0000 Subject: [PATCH 1/2] fs: deprecate fsDisableAutoSaveDataCreation on 22.0.0+ --- nx/source/services/fs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nx/source/services/fs.c b/nx/source/services/fs.c index d1715d26c7..2273968243 100644 --- a/nx/source/services/fs.c +++ b/nx/source/services/fs.c @@ -631,6 +631,9 @@ Result fsGetContentStorageInfoIndex(s32 *out) { } Result fsDisableAutoSaveDataCreation(void) { + if (hosversionAtLeast(22,0,0)) + return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); + return _fsCmdNoIO(&g_fsSrv, 1003); } From 502f0fc6dd4d0c8cc145637e9cfd958b798c77a7 Mon Sep 17 00:00:00 2001 From: hexkyz Date: Sun, 22 Mar 2026 20:55:55 +0000 Subject: [PATCH 2/2] fs: update fsDisableAutoSaveDataCreation comment --- nx/include/switch/services/fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nx/include/switch/services/fs.h b/nx/include/switch/services/fs.h index 387cccfd3f..4f276c0149 100644 --- a/nx/include/switch/services/fs.h +++ b/nx/include/switch/services/fs.h @@ -555,7 +555,7 @@ Result fsGetRightsIdAndKeyGenerationByPath(const char* path, FsContentAttributes Result fsGetContentStorageInfoIndex(s32 *out); ///< [19.0.0+] -Result fsDisableAutoSaveDataCreation(void); +Result fsDisableAutoSaveDataCreation(void); ///< [1.0.0-21.2.0] Result fsSetGlobalAccessLogMode(u32 mode); Result fsGetGlobalAccessLogMode(u32* out_mode);