fs: DisableAutoSaveDataCreation was removed in 22

This commit is contained in:
Alula
2026-03-17 12:15:03 +01:00
parent 76bceffbd5
commit 26990b3be9
3 changed files with 8 additions and 2 deletions

View File

@@ -132,7 +132,7 @@
AMS_SF_METHOD_INFO(C, H, 1000, Result, SetBisRootForHost, (u32 id, const fssrv::sf::FspPath &path), (id, path), hos::Version_Min, hos::Version_9_2_0) \
AMS_SF_METHOD_INFO(C, H, 1001, Result, SetSaveDataSize, (s64 size, s64 journal_size), (size, journal_size)) \
AMS_SF_METHOD_INFO(C, H, 1002, Result, SetSaveDataRootPath, (const fssrv::sf::FspPath &path), (path)) \
AMS_SF_METHOD_INFO(C, H, 1003, Result, DisableAutoSaveDataCreation, (), ()) \
AMS_SF_METHOD_INFO(C, H, 1003, Result, DisableAutoSaveDataCreation, (), (), hos::Version_Min, hos::Version_21_2_0) \
AMS_SF_METHOD_INFO(C, H, 1004, Result, SetGlobalAccessLogMode, (u32 mode), (mode)) \
AMS_SF_METHOD_INFO(C, H, 1005, Result, GetGlobalAccessLogMode, (ams::sf::Out<u32> out), (out)) \
AMS_SF_METHOD_INFO(C, H, 1006, Result, OutputAccessLogToSdCard, (const ams::sf::InBuffer &buf), (buf)) \

View File

@@ -53,7 +53,9 @@ namespace ams::erpt::srv {
}
Result MountSystemSaveData() {
fs::DisableAutoSaveDataCreation();
if (hos::GetVersion() < hos::Version_22_0_0) {
fs::DisableAutoSaveDataCreation();
}
/* Extend the system save data. */
/* NOTE: Nintendo used to not check the result of this; they do now, but . */

View File

@@ -42,6 +42,10 @@ namespace ams::fs {
}
void DisableAutoSaveDataCreation() {
if (hos::GetVersion() >= hos::Version_22_0_0) {
return;
}
auto fsp = impl::GetFileSystemProxyServiceObject();
AMS_FS_R_ABORT_UNLESS(fsp->DisableAutoSaveDataCreation());
}