Ver código fonte

Ignore exceptions when cleaning the SD card saves (#2576)

Alex Barney 4 anos atrás
pai
commit
5e99bff7de
1 arquivos alterados com 11 adições e 2 exclusões
  1. 11 2
      Ryujinx.HLE/HOS/LibHacHorizonManager.cs

+ 11 - 2
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
             {