diff options
| author | Alex Barney <thealexbarney@gmail.com> | 2021-08-20 16:03:17 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-21 01:03:17 +0200 |
| commit | 5e99bff7deb51ad6d69d2393bc267a8a9428058c (patch) | |
| tree | 77e0e39154e0f5e1cca0318244f9c4a9df767109 | |
| parent | d753de6d5de17cfaf36bb5ecfeff0f0d60846171 (diff) | |
Ignore exceptions when cleaning the SD card saves (#2576)
| -rw-r--r-- | Ryujinx.HLE/HOS/LibHacHorizonManager.cs | 13 |
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 { |
