From 7f1035374dfd399ebc2d412f99bdef1c910c25e3 Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Sat, 15 Jan 2022 13:28:24 -0700 Subject: [PATCH] Ensure SaveDataSharedFileStorage classes are updated for 13.1.0 - SaveDataOpenTypeSetFileStorage - SaveDataSharedFileStorage - SaveDataFileStorageHolder --- src/LibHac/FsSrv/SaveDataSharedFileStorage.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/LibHac/FsSrv/SaveDataSharedFileStorage.cs b/src/LibHac/FsSrv/SaveDataSharedFileStorage.cs index db1c8333..0cddf87d 100644 --- a/src/LibHac/FsSrv/SaveDataSharedFileStorage.cs +++ b/src/LibHac/FsSrv/SaveDataSharedFileStorage.cs @@ -14,7 +14,7 @@ namespace LibHac.FsSrv; /// /// Contains global functions for SaveDataSharedFileStorage. /// -/// Based on FS 12.1.0 (nnSdk 12.3.1). +/// Based on FS 13.1.0 (nnSdk 13.4.0) public static class SaveDataSharedFileStorageGlobalMethods { public static Result OpenSaveDataStorage(this FileSystemServer fsSrv, @@ -45,7 +45,7 @@ internal struct SaveDataSharedFileStorageGlobals /// This class keeps track of which types of save data file systems have been opened from the save data file. /// Only one of each file system type can be opened at the same time. /// -/// Based on FS 12.1.0 (nnSdk 12.3.1). +/// Based on FS 13.1.0 (nnSdk 13.4.0) public class SaveDataOpenTypeSetFileStorage : FileStorageBasedFileSystem { public enum OpenType @@ -71,7 +71,7 @@ public class SaveDataOpenTypeSetFileStorage : FileStorageBasedFileSystem _fsServer = fsServer; _spaceId = spaceId; _saveDataId = saveDataId; - _mutex.Initialize(); + _mutex = new SdkMutexType(); } public Result Initialize(ref SharedRef baseFileSystem, in Path path, OpenMode mode, OpenType type) @@ -161,7 +161,7 @@ public class SaveDataOpenTypeSetFileStorage : FileStorageBasedFileSystem /// Once an internal file system is opened, it will be considered valid until the save data image is /// written to via the normal file system, at which point any accesses via the internal file system will /// return -/// Based on FS 12.1.0 (nnSdk 12.3.1). +/// Based on FS 13.1.0 (nnSdk 13.4.0) /// public class SaveDataSharedFileStorage : IStorage { @@ -268,7 +268,7 @@ public class SaveDataSharedFileStorage : IStorage /// /// Holds references to any open shared save data image files. /// -/// Based on FS 12.1.0 (nnSdk 12.3.1). +/// Based on FS 13.1.0 (nnSdk 13.4.0) public class SaveDataFileStorageHolder { [NonCopyable]