diff options
-rw-r--r-- | build/smapi.targets | 3 | ||||
-rw-r--r-- | release-notes.md | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/build/smapi.targets b/build/smapi.targets index de3420d1..21989bd1 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -101,5 +101,8 @@ <Target Name="BeforeBuild"> <!-- if game path is invalid, show one user-friendly error instead of a slew of reference errors --> <Error Condition="!Exists('$(GamePath)')" Text="Failed to find the game install path. See https://github.com/Pathoschild/Stardew.ModBuildConfig#troubleshoot for help." /> + <Error Condition="'$(GamePlatform)' == 'Windows' AND !Exists('$(GamePath)\Stardew Valley.exe')" Text="Found a game folder at $(GamePath), but it doesn't contain Stardew Valley. You should delete this folder if it's empty." /> + <Error Condition="'$(GamePlatform)' != 'Windows' AND !Exists('$(GamePath)\StardewValley.exe')" Text="Found a game folder at $(GamePath), but it doesn't contain Stardew Valley. You should delete this folder if it's empty." /> + <Error Condition="!Exists('$(GamePath)\StardewModdingAPI.exe')" Text="Found a game folder at $(GamePath), but it doesn't contain SMAPI." /> </Target> </Project>
\ No newline at end of file diff --git a/release-notes.md b/release-notes.md index 91eabb40..6ec456bc 100644 --- a/release-notes.md +++ b/release-notes.md @@ -1,4 +1,7 @@ ## Release notes +### 1.6 +* Added a build error if a game folder is found, but doesn't contain Stardew Valley or SMAPI. + ### 1.5 * Added support for setting a custom game path globally. * Added default GOG path on Mac. @@ -21,4 +24,4 @@ * Initial release. * Added support for detecting the game path automatically. * Added support for injecting XNA/MonoGame references automatically based on the OS. -* Added support for mod builders like SilVerPLuM.
\ No newline at end of file +* Added support for mod builders like SilVerPLuM. |