diff options
Diffstat (limited to 'src/SMAPI')
-rw-r--r-- | src/SMAPI/Framework/ModData/ParsedModDataRecord.cs | 3 | ||||
-rw-r--r-- | src/SMAPI/Framework/ModLoading/ModResolver.cs | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/SMAPI/Framework/ModData/ParsedModDataRecord.cs b/src/SMAPI/Framework/ModData/ParsedModDataRecord.cs index 5a6561a7..7f49790d 100644 --- a/src/SMAPI/Framework/ModData/ParsedModDataRecord.cs +++ b/src/SMAPI/Framework/ModData/ParsedModDataRecord.cs @@ -15,9 +15,6 @@ namespace StardewModdingAPI.Framework.ModData /// <summary>The update key to apply.</summary> public string UpdateKey { get; set; } - /// <summary>The mod version to apply.</summary> - public ISemanticVersion Version { get; set; } - /// <summary>The alternative URL the player can check for an updated version.</summary> public string AlternativeUrl { get; set; } diff --git a/src/SMAPI/Framework/ModLoading/ModResolver.cs b/src/SMAPI/Framework/ModLoading/ModResolver.cs index be73254d..8b4a3eb8 100644 --- a/src/SMAPI/Framework/ModLoading/ModResolver.cs +++ b/src/SMAPI/Framework/ModLoading/ModResolver.cs @@ -57,6 +57,13 @@ namespace StardewModdingAPI.Framework.ModLoading if (string.IsNullOrWhiteSpace(displayName)) displayName = modDir.FullName.Replace(rootPath, "").Trim('/', '\\'); + // apply defaults + if (manifest != null && dataRecord != null) + { + if (dataRecord.UpdateKey != null) + manifest.UpdateKeys = new[] { dataRecord.UpdateKey }; + } + // build metadata ModMetadataStatus status = error == null ? ModMetadataStatus.Found |