summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Constants.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-03-30 20:21:15 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-03-30 20:21:15 -0400
commitc023118356d9d7877dbdc9e88c4512fcdf33c256 (patch)
treeaf483f2642baa3787142edf7bdba26ab6a1074fe /src/StardewModdingAPI/Constants.cs
parentb4b4689f00c74b50842e3f651be6bbe297b5f02d (diff)
downloadSMAPI-c023118356d9d7877dbdc9e88c4512fcdf33c256.tar.gz
SMAPI-c023118356d9d7877dbdc9e88c4512fcdf33c256.tar.bz2
SMAPI-c023118356d9d7877dbdc9e88c4512fcdf33c256.zip
always show friendly game version
Diffstat (limited to 'src/StardewModdingAPI/Constants.cs')
-rw-r--r--src/StardewModdingAPI/Constants.cs29
1 files changed, 13 insertions, 16 deletions
diff --git a/src/StardewModdingAPI/Constants.cs b/src/StardewModdingAPI/Constants.cs
index 37fa4d31..e28b33d7 100644
--- a/src/StardewModdingAPI/Constants.cs
+++ b/src/StardewModdingAPI/Constants.cs
@@ -80,9 +80,6 @@ namespace StardewModdingAPI
/// <summary>The game's current semantic version.</summary>
internal static ISemanticVersion GameVersion { get; } = Constants.GetGameVersion();
- /// <summary>The game's current version as it should be displayed to players.</summary>
- internal static ISemanticVersion GameDisplayVersion { get; } = Constants.GetGameDisplayVersion(Constants.GameVersion);
-
/// <summary>The target game platform.</summary>
internal static Platform TargetPlatform { get; } =
#if SMAPI_FOR_WINDOWS
@@ -177,6 +174,19 @@ namespace StardewModdingAPI
};
}
+ /// <summary>Get game current version as it should be displayed to players.</summary>
+ /// <param name="version">The semantic game version.</param>
+ internal static ISemanticVersion GetGameDisplayVersion(ISemanticVersion version)
+ {
+ switch (version.ToString())
+ {
+ case "1.1.1":
+ return new SemanticVersion(1, 11, 0); // The 1.1 patch was released as 1.11
+ default:
+ return version;
+ }
+ }
+
/// <summary>Get the name of a save directory for the current player.</summary>
private static string GetSaveFolderName()
{
@@ -199,18 +209,5 @@ namespace StardewModdingAPI
version = "1.1.1"; // The 1.1 patch was released as 1.11, which means it's out of order for semantic version checks
return new SemanticVersion(version);
}
-
- /// <summary>Get game current version as it should be displayed to players.</summary>
- /// <param name="version">The semantic game version.</param>
- private static ISemanticVersion GetGameDisplayVersion(ISemanticVersion version)
- {
- switch (version.ToString())
- {
- case "1.1.1":
- return new SemanticVersion(1, 11, 0); // The 1.1 patch was released as 1.11
- default:
- return version;
- }
- }
}
}