aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Barney <thealexbarney@gmail.com>2021-08-20 16:03:17 -0700
committerGitHub <noreply@github.com>2021-08-21 01:03:17 +0200
commit5e99bff7deb51ad6d69d2393bc267a8a9428058c (patch)
tree77e0e39154e0f5e1cca0318244f9c4a9df767109
parentd753de6d5de17cfaf36bb5ecfeff0f0d60846171 (diff)
Ignore exceptions when cleaning the SD card saves (#2576)
-rw-r--r--Ryujinx.HLE/HOS/LibHacHorizonManager.cs13
1 files changed, 11 insertions, 2 deletions
diff --git a/Ryujinx.HLE/HOS/LibHacHorizonManager.cs b/Ryujinx.HLE/HOS/LibHacHorizonManager.cs
index 61e0227f..0444b9c5 100644
--- a/Ryujinx.HLE/HOS/LibHacHorizonManager.cs
+++ b/Ryujinx.HLE/HOS/LibHacHorizonManager.cs
@@ -97,8 +97,17 @@ namespace Ryujinx.HLE.HOS
try
{
- RyujinxClient.Fs.CleanDirectoryRecursively("sdcard:/Nintendo/save".ToU8Span()).IgnoreResult();
- RyujinxClient.Fs.DeleteDirectoryRecursively("sdcard:/save".ToU8Span()).IgnoreResult();
+ try
+ {
+ RyujinxClient.Fs.CleanDirectoryRecursively("sdcard:/Nintendo/save".ToU8Span()).IgnoreResult();
+ }
+ catch (Exception) { /* We don't care about the result */ }
+
+ try
+ {
+ RyujinxClient.Fs.DeleteDirectoryRecursively("sdcard:/save".ToU8Span()).IgnoreResult();
+ }
+ catch (Exception) { /* We don't care about the result */ }
}
finally
{