mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-15 09:35:27 +00:00
Ignore exceptions when cleaning the SD card saves (#2576)
This commit is contained in:
parent
d753de6d5d
commit
5e99bff7de
|
@ -95,11 +95,20 @@ namespace Ryujinx.HLE.HOS
|
||||||
Result rc = RyujinxClient.Fs.MountSdCard("sdcard".ToU8Span());
|
Result rc = RyujinxClient.Fs.MountSdCard("sdcard".ToU8Span());
|
||||||
if (rc.IsFailure()) return;
|
if (rc.IsFailure()) return;
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
RyujinxClient.Fs.CleanDirectoryRecursively("sdcard:/Nintendo/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();
|
RyujinxClient.Fs.DeleteDirectoryRecursively("sdcard:/save".ToU8Span()).IgnoreResult();
|
||||||
}
|
}
|
||||||
|
catch (Exception) { /* We don't care about the result */ }
|
||||||
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
RyujinxClient.Fs.Unmount("sdcard".ToU8Span());
|
RyujinxClient.Fs.Unmount("sdcard".ToU8Span());
|
||||||
|
|
Loading…
Reference in a new issue