aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Common/Configuration/AppDataManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Common/Configuration/AppDataManager.cs')
-rw-r--r--src/Ryujinx.Common/Configuration/AppDataManager.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Ryujinx.Common/Configuration/AppDataManager.cs b/src/Ryujinx.Common/Configuration/AppDataManager.cs
index 26b587da..deaa03de 100644
--- a/src/Ryujinx.Common/Configuration/AppDataManager.cs
+++ b/src/Ryujinx.Common/Configuration/AppDataManager.cs
@@ -233,8 +233,15 @@ namespace Ryujinx.Common.Configuration
// Should be removed, when the existence of the old directory isn't checked anymore.
private static bool IsPathSymlink(string path)
{
- FileAttributes attributes = File.GetAttributes(path);
- return (attributes & FileAttributes.ReparsePoint) == FileAttributes.ReparsePoint;
+ try
+ {
+ FileAttributes attributes = File.GetAttributes(path);
+ return (attributes & FileAttributes.ReparsePoint) == FileAttributes.ReparsePoint;
+ }
+ catch
+ {
+ return false;
+ }
}
[SupportedOSPlatform("macos")]