This commit is contained in:
smoogipoo 2021-10-04 16:02:45 +09:00
parent ec61c3c5ee
commit 4e1322effa
1 changed files with 5 additions and 5 deletions

View File

@ -185,12 +185,12 @@ private void validateOnlineIds(BeatmapSetInfo beatmapSet)
/// <summary>
/// Saves an <see cref="IBeatmap"/> file against a given <see cref="BeatmapInfo"/>.
/// </summary>
/// <param name="baetmapInfo">The <see cref="BeatmapInfo"/> to save the content against. The file referenced by <see cref="BeatmapInfo.Path"/> will be replaced.</param>
/// <param name="beatmapInfo">The <see cref="BeatmapInfo"/> to save the content against. The file referenced by <see cref="BeatmapInfo.Path"/> will be replaced.</param>
/// <param name="beatmapContent">The <see cref="IBeatmap"/> content to write.</param>
/// <param name="beatmapSkin">The beatmap <see cref="ISkin"/> content to write, null if to be omitted.</param>
public virtual void Save(BeatmapInfo baetmapInfo, IBeatmap beatmapContent, ISkin beatmapSkin = null)
public virtual void Save(BeatmapInfo beatmapInfo, IBeatmap beatmapContent, ISkin beatmapSkin = null)
{
var setInfo = baetmapInfo.BeatmapSet;
var setInfo = beatmapInfo.BeatmapSet;
using (var stream = new MemoryStream())
{
@ -201,7 +201,7 @@ public virtual void Save(BeatmapInfo baetmapInfo, IBeatmap beatmapContent, ISkin
using (ContextFactory.GetForWrite())
{
var beatmapInfo = setInfo.Beatmaps.Single(b => b.ID == baetmapInfo.ID);
beatmapInfo = setInfo.Beatmaps.Single(b => b.ID == beatmapInfo.ID);
var metadata = beatmapInfo.Metadata ?? setInfo.Metadata;
// grab the original file (or create a new one if not found).
@ -219,7 +219,7 @@ public virtual void Save(BeatmapInfo baetmapInfo, IBeatmap beatmapContent, ISkin
}
}
WorkingBeatmapCache?.Invalidate(baetmapInfo);
WorkingBeatmapCache?.Invalidate(beatmapInfo);
}
/// <summary>