summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-07-13 22:45:48 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-09-14 18:48:54 -0400
commit4f7d861ce4767259a556607a167481e074ec4f4c (patch)
tree2faa349a980eca9e397a783680839366dbcca9cf
parente2f545484e1a63d55154e2b6a924dfb6d94f7a5a (diff)
downloadSMAPI-4f7d861ce4767259a556607a167481e074ec4f4c.tar.gz
SMAPI-4f7d861ce4767259a556607a167481e074ec4f4c.tar.bz2
SMAPI-4f7d861ce4767259a556607a167481e074ec4f4c.zip
make SemanticVersion.TryParse public
-rw-r--r--docs/release-notes.md3
-rw-r--r--src/SMAPI/SemanticVersion.cs2
2 files changed, 2 insertions, 3 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md
index 49bc2eab..9980c310 100644
--- a/docs/release-notes.md
+++ b/docs/release-notes.md
@@ -27,8 +27,7 @@ These changes have not been released yet.
* For modders:
* Mods are now loaded much earlier in the game launch. This lets mods intercept any content asset, but the game is not fully initialised when `Entry` is called (use the `GameLaunched` event if you need to run code when the game is initialised).
* Added support for content pack translations.
- * Added `IContentPack.HasFile` method.
- * Added `Context.IsGameLaunched` field.
+ * Added fields and methods: `IContentPack.HasFile`, `Context.IsGameLaunched`, and `SemanticVersion.TryParse`.
* Added separate `LogNetworkTraffic` option to make verbose logging less overwhelmingly verbose.
* Added asset propagation for critter textures.
* The installer now recognises custom game paths stored in `stardewvalley.targets`, if any.
diff --git a/src/SMAPI/SemanticVersion.cs b/src/SMAPI/SemanticVersion.cs
index acdc92f8..b346cfdd 100644
--- a/src/SMAPI/SemanticVersion.cs
+++ b/src/SMAPI/SemanticVersion.cs
@@ -141,7 +141,7 @@ namespace StardewModdingAPI
/// <param name="version">The version string.</param>
/// <param name="parsed">The parsed representation.</param>
/// <returns>Returns whether parsing the version succeeded.</returns>
- internal static bool TryParse(string version, out ISemanticVersion parsed)
+ public static bool TryParse(string version, out ISemanticVersion parsed)
{
if (Toolkit.SemanticVersion.TryParse(version, out ISemanticVersion versionImpl))
{