From 5e99bff7deb51ad6d69d2393bc267a8a9428058c Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Fri, 20 Aug 2021 16:03:17 -0700 Subject: [PATCH] Ignore exceptions when cleaning the SD card saves (#2576) --- Ryujinx.HLE/HOS/LibHacHorizonManager.cs | 13 +++++++++++-- 1 file 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 {