summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.Toolkit/Framework/UpdateData
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-09-02 19:19:13 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-09-02 19:19:13 -0400
commitc94f3e7c63a2f1aec89c68417db348d4e684fb79 (patch)
tree6cf32c93b43e0852352b493070d7f4812e236a96 /src/StardewModdingAPI.Toolkit/Framework/UpdateData
parent093117d777a84e3f1e3aaa8a1337059fb805a7dd (diff)
downloadSMAPI-c94f3e7c63a2f1aec89c68417db348d4e684fb79.tar.gz
SMAPI-c94f3e7c63a2f1aec89c68417db348d4e684fb79.tar.bz2
SMAPI-c94f3e7c63a2f1aec89c68417db348d4e684fb79.zip
only use valid update keys in update-check logic (#592)
Diffstat (limited to 'src/StardewModdingAPI.Toolkit/Framework/UpdateData')
-rw-r--r--src/StardewModdingAPI.Toolkit/Framework/UpdateData/UpdateKey.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/StardewModdingAPI.Toolkit/Framework/UpdateData/UpdateKey.cs b/src/StardewModdingAPI.Toolkit/Framework/UpdateData/UpdateKey.cs
index 49b7a272..865ebcf7 100644
--- a/src/StardewModdingAPI.Toolkit/Framework/UpdateData/UpdateKey.cs
+++ b/src/StardewModdingAPI.Toolkit/Framework/UpdateData/UpdateKey.cs
@@ -61,5 +61,13 @@ namespace StardewModdingAPI.Toolkit.Framework.UpdateData
return new UpdateKey(raw, repository, id);
}
+
+ /// <summary>Get a string that represents the current object.</summary>
+ public override string ToString()
+ {
+ return this.LooksValid
+ ? $"{this.Repository}:{this.ID}"
+ : this.RawText;
+ }
}
}