1
0
forked from MeloNX/MeloNX

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

This commit is contained in:
Alex Barney 2021-08-20 16:03:17 -07:00 committed by GitHub
parent b3bf958f8a
commit 0eb42963a0

View File

@ -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
{