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 /build/smapi.targets | |
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
Diffstat (limited to 'build/smapi.targets')
-rw-r--r-- | build/smapi.targets | 3 |
1 files changed, 3 insertions, 0 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 |