mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-24 12:56:39 +01:00
Ignore exceptions when cleaning the SD card saves (#2576)
This commit is contained in:
parent
d753de6d5d
commit
5e99bff7de
1 changed files with 11 additions and 2 deletions
|
@ -97,8 +97,17 @@ namespace Ryujinx.HLE.HOS
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
RyujinxClient.Fs.CleanDirectoryRecursively("sdcard:/Nintendo/save".ToU8Span()).IgnoreResult();
|
try
|
||||||
RyujinxClient.Fs.DeleteDirectoryRecursively("sdcard:/save".ToU8Span()).IgnoreResult();
|
{
|
||||||
|
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
|
finally
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue