diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-06-05 16:01:08 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-06-05 17:28:59 -0400 |
commit | 66b1b583e5233a4b50b832733d8e2cbc329a70be (patch) | |
tree | 3d21dadc8a949b00290b3f192e5a4230fed313aa | |
parent | ffc54bed9c8fe063052306b1e1bc138b9848618d (diff) | |
download | SMAPI-66b1b583e5233a4b50b832733d8e2cbc329a70be.tar.gz SMAPI-66b1b583e5233a4b50b832733d8e2cbc329a70be.tar.bz2 SMAPI-66b1b583e5233a4b50b832733d8e2cbc329a70be.zip |
add error if a game folder is detected, but it doesn't contain Stardew Valley or SMAPI
-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. |