mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 03:22:59 +08:00
Make transferCollections
argument to private method explicitly required
This commit is contained in:
parent
739ec8d81d
commit
741ca96853
@ -286,10 +286,8 @@ namespace osu.Game.Beatmaps
|
|||||||
/// <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="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="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>
|
/// <param name="beatmapSkin">The beatmap <see cref="ISkin"/> content to write, null if to be omitted.</param>
|
||||||
public virtual void Save(BeatmapInfo beatmapInfo, IBeatmap beatmapContent, ISkin? beatmapSkin = null)
|
public virtual void Save(BeatmapInfo beatmapInfo, IBeatmap beatmapContent, ISkin? beatmapSkin = null) =>
|
||||||
{
|
save(beatmapInfo, beatmapContent, beatmapSkin, transferCollections: true);
|
||||||
save(beatmapInfo, beatmapContent, beatmapSkin);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void DeleteAllVideos()
|
public void DeleteAllVideos()
|
||||||
{
|
{
|
||||||
@ -399,7 +397,7 @@ namespace osu.Game.Beatmaps
|
|||||||
setInfo.Status = BeatmapOnlineStatus.LocallyModified;
|
setInfo.Status = BeatmapOnlineStatus.LocallyModified;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void save(BeatmapInfo beatmapInfo, IBeatmap beatmapContent, ISkin? beatmapSkin, bool transferCollections = true)
|
private void save(BeatmapInfo beatmapInfo, IBeatmap beatmapContent, ISkin? beatmapSkin, bool transferCollections)
|
||||||
{
|
{
|
||||||
var setInfo = beatmapInfo.BeatmapSet;
|
var setInfo = beatmapInfo.BeatmapSet;
|
||||||
Debug.Assert(setInfo != null);
|
Debug.Assert(setInfo != null);
|
||||||
|
Loading…
Reference in New Issue
Block a user