aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/LibHacHorizonManager.cs
diff options
context:
space:
mode:
authorAlex Barney <thealexbarney@gmail.com>2022-11-23 10:32:35 -0700
committerGitHub <noreply@github.com>2022-11-23 18:32:35 +0100
commit36f00985d3191ebd6ea909ddc4ed447ebdbf51b5 (patch)
tree7d746bdf2e21ca76a90bfb03a24aae01ef4de3f6 /Ryujinx.HLE/HOS/LibHacHorizonManager.cs
parent748d87adccd0f331bd6d1163703040b6d62353b8 (diff)
Update to LibHac 0.17.0 (#3878)1.1.372
* Update to LibHac 0.17.0 * Don't clear SD card saves when starting the emulator This was an old workaround for errors that happened when a user's SD card encryption seed changed. SD card saves have been unencrypted for over a year, so we should be fine to remove the workaround.
Diffstat (limited to 'Ryujinx.HLE/HOS/LibHacHorizonManager.cs')
-rw-r--r--Ryujinx.HLE/HOS/LibHacHorizonManager.cs23
1 files changed, 0 insertions, 23 deletions
diff --git a/Ryujinx.HLE/HOS/LibHacHorizonManager.cs b/Ryujinx.HLE/HOS/LibHacHorizonManager.cs
index 35e5c6e9..8fde5dd6 100644
--- a/Ryujinx.HLE/HOS/LibHacHorizonManager.cs
+++ b/Ryujinx.HLE/HOS/LibHacHorizonManager.cs
@@ -60,8 +60,6 @@ namespace Ryujinx.HLE.HOS
virtualFileSystem.InitializeFsServer(Server, out var fsClient);
FsClient = fsClient;
-
- CleanSdCardDirectory();
}
public void InitializeSystemClients()
@@ -78,27 +76,6 @@ namespace Ryujinx.HLE.HOS
ApplicationClient = Server.CreateHorizonClient(new ProgramLocation(programId, StorageId.BuiltInUser), npdm.FsAccessControlData, npdm.FsAccessControlDescriptor);
}
- // This function was added to avoid errors that come from a user's keys or SD encryption seed changing.
- // Catching these errors and recreating the file ended up not working because of the different ways
- // applications respond to a file suddenly containing all zeros or having a length of zero.
- // Clearing the SD card save directory was determined to be the best option for the moment since
- // the saves on the SD card are meant as caches that can be deleted at any time.
- private void CleanSdCardDirectory()
- {
- Result rc = RyujinxClient.Fs.MountSdCard("sdcard".ToU8Span());
- if (rc.IsFailure()) return;
-
- try
- {
- RyujinxClient.Fs.CleanDirectoryRecursively("sdcard:/Nintendo/save".ToU8Span()).IgnoreResult();
- RyujinxClient.Fs.DeleteDirectoryRecursively("sdcard:/save".ToU8Span()).IgnoreResult();
- }
- finally
- {
- RyujinxClient.Fs.Unmount("sdcard".ToU8Span());
- }
- }
-
private static AccessControlBits.Bits AccountFsPermissions => AccessControlBits.Bits.SystemSaveData |
AccessControlBits.Bits.GameCard |
AccessControlBits.Bits.SaveDataMeta |