diff --git a/nx/include/switch/services/fs.h b/nx/include/switch/services/fs.h index 387cccfd3..4f276c014 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); diff --git a/nx/source/services/fs.c b/nx/source/services/fs.c index d1715d26c..227396824 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); }