summaryrefslogtreecommitdiff
path: root/src/SMAPI.Toolkit/Framework/GameScanning/GameScanner.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2023-05-14 16:10:59 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2023-05-14 16:10:59 -0400
commit9e1bfff7f7889783fcaa7d055e3351b90d03f465 (patch)
tree305ea3b66d43db56fe7441aa771c46a5ef8914ad /src/SMAPI.Toolkit/Framework/GameScanning/GameScanner.cs
parentbb5c4001d6c46e30584b503638f0df957d0673e9 (diff)
downloadSMAPI-9e1bfff7f7889783fcaa7d055e3351b90d03f465.tar.gz
SMAPI-9e1bfff7f7889783fcaa7d055e3351b90d03f465.tar.bz2
SMAPI-9e1bfff7f7889783fcaa7d055e3351b90d03f465.zip
fix install error if a game folder has an invalid symlink
Diffstat (limited to 'src/SMAPI.Toolkit/Framework/GameScanning/GameScanner.cs')
-rw-r--r--src/SMAPI.Toolkit/Framework/GameScanning/GameScanner.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI.Toolkit/Framework/GameScanning/GameScanner.cs b/src/SMAPI.Toolkit/Framework/GameScanning/GameScanner.cs
index 88142805..45f3e203 100644
--- a/src/SMAPI.Toolkit/Framework/GameScanning/GameScanner.cs
+++ b/src/SMAPI.Toolkit/Framework/GameScanning/GameScanner.cs
@@ -73,7 +73,7 @@ namespace StardewModdingAPI.Toolkit.Framework.GameScanning
return GameFolderType.NoGameFound;
// apparently valid
- if (dir.EnumerateFiles("Stardew Valley.dll").Any())
+ if (File.Exists(Path.Combine(dir.FullName, "Stardew Valley.dll")))
return GameFolderType.Valid;
// doesn't contain any version of Stardew Valley