You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added `harmony_summary` console command which lists all current Harmony patches, optionally with a search filter.
17
18
* Harmony mods which use the `[HarmonyPatch(type)]` attribute now work crossplatform. Previously SMAPI couldn't rewrite types in custom attributes for compatibility.
errors.Add($"The update key '{updateKey}' isn't in a valid format. It should contain the site key and mod ID like 'Nexus:541'.");
138
+
errors.Add($"The update key '{updateKey}' isn't in a valid format. It should contain the site key and mod ID like 'Nexus:541', with an optional subkey like 'Nexus:541@subkey'.");
139
139
continue;
140
140
}
141
141
@@ -271,7 +271,7 @@ private async Task<ModInfoModel> GetInfoForUpdateKeyAsync(UpdateKey updateKey, b
Copy file name to clipboardExpand all lines: src/SMAPI.Web/Framework/ModSiteManager.cs
+21-7Lines changed: 21 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -54,9 +54,10 @@ public async Task<IModPage> GetModPageAsync(UpdateKey updateKey)
54
54
55
55
/// <summary>Parse version info for the given mod page info.</summary>
56
56
/// <param name="page">The mod page info.</param>
57
+
/// <param name="subkey">The optional update subkey to match in available files. (If no file names or descriptions contain the subkey, it'll be ignored.)</param>
57
58
/// <param name="mapRemoteVersions">Maps remote versions to a semantic version for update checks.</param>
58
59
/// <param name="allowNonStandardVersions">Whether to allow non-standard versions.</param>
returnmodel.SetError(RemoteModStatus.InvalidData,$"The {page.Site} mod with ID '{page.Id}' has no valid versions.");
71
75
72
76
// return info
@@ -96,11 +100,12 @@ public ISemanticVersion GetMappedVersion(string version, IDictionary<string, str
96
100
*********/
97
101
/// <summary>Get the mod version numbers for the given mod.</summary>
98
102
/// <param name="mod">The mod to check.</param>
103
+
/// <param name="subkey">The optional update subkey to match in available files. (If no file names or descriptions contain the subkey, it'll be ignored.)</param>
99
104
/// <param name="allowNonStandardVersions">Whether to allow non-standard versions.</param>
100
105
/// <param name="mapRemoteVersions">Maps remote versions to a semantic version for update checks.</param>
101
106
/// <param name="main">The main mod version.</param>
102
107
/// <param name="preview">The latest prerelease version, if newer than <paramref name="main"/>.</param>
0 commit comments