fix install error if a game folder has an invalid symlink
This commit is contained in:
parent
5d2afc0aa4
commit
3c46bdaeb3
|
@ -11,6 +11,7 @@
|
||||||
* For players:
|
* For players:
|
||||||
* In multiplayer, the game/SMAPI window titles now show whether you're the main player or a farmhand.
|
* In multiplayer, the game/SMAPI window titles now show whether you're the main player or a farmhand.
|
||||||
* Fixed logged SMAPI errors not having line numbers on Linux/macOS.
|
* Fixed logged SMAPI errors not having line numbers on Linux/macOS.
|
||||||
|
* Fixed install error if a game folder has an invalid symlink.
|
||||||
|
|
||||||
* For mod authors:
|
* For mod authors:
|
||||||
* Fixed error loading a mod if it sets `"MinimumApiVersion": null` explicitly.
|
* Fixed error loading a mod if it sets `"MinimumApiVersion": null` explicitly.
|
||||||
|
|
|
@ -73,7 +73,7 @@ namespace StardewModdingAPI.Toolkit.Framework.GameScanning
|
||||||
return GameFolderType.NoGameFound;
|
return GameFolderType.NoGameFound;
|
||||||
|
|
||||||
// apparently valid
|
// apparently valid
|
||||||
if (dir.EnumerateFiles("Stardew Valley.dll").Any())
|
if (File.Exists(Path.Combine(dir.FullName, "Stardew Valley.dll")))
|
||||||
return GameFolderType.Valid;
|
return GameFolderType.Valid;
|
||||||
|
|
||||||
// doesn't contain any version of Stardew Valley
|
// doesn't contain any version of Stardew Valley
|
||||||
|
|
Loading…
Reference in New Issue