diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-01-14 01:11:42 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-01-14 01:11:42 -0500 |
commit | 0ac9e47ea2af8d09baa2df9568aa30dce790c950 (patch) | |
tree | 65aa864eff420f5b6be850a254bcc7f802302605 /src/StardewModdingAPI/Program.cs | |
parent | 40bc8f57c71d12d49bad24074cfe3279efe12850 (diff) | |
download | SMAPI-0ac9e47ea2af8d09baa2df9568aa30dce790c950.tar.gz SMAPI-0ac9e47ea2af8d09baa2df9568aa30dce790c950.tar.bz2 SMAPI-0ac9e47ea2af8d09baa2df9568aa30dce790c950.zip |
add support for custom incompatible-mod-version error text
Diffstat (limited to 'src/StardewModdingAPI/Program.cs')
-rw-r--r-- | src/StardewModdingAPI/Program.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/StardewModdingAPI/Program.cs b/src/StardewModdingAPI/Program.cs index 9d08c823..e5c27e71 100644 --- a/src/StardewModdingAPI/Program.cs +++ b/src/StardewModdingAPI/Program.cs @@ -402,7 +402,8 @@ namespace StardewModdingAPI { if (!compatibility.IsCompatible(manifest.Version)) { - string warning = $"Skipped {compatibility.Name} {manifest.Version} because this version is not compatible with the latest version of the game. Please check for a newer version of the mod here:"; + string reasonPhrase = compatibility.ReasonPhrase ?? "this version is not compatible with the latest version of the game"; + string warning = $"Skipped {compatibility.Name} {manifest.Version} because {reasonPhrase}. Please check for a newer version of the mod here:"; if (!string.IsNullOrWhiteSpace(compatibility.UpdateUrl)) warning += $"{Environment.NewLine}- official mod: {compatibility.UpdateUrl}"; if (!string.IsNullOrWhiteSpace(compatibility.UnofficialUpdateUrl)) |