mirror of
https://github.com/ppy/osu.git
synced 2025-03-12 10:27:20 +08:00
Fix ManiaModInvert
permanently messing up the beatmap
This commit is contained in:
parent
4cb58fbe47
commit
f942595829
@ -7,6 +7,8 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
using osu.Framework.Bindables;
|
||||||
|
using osu.Game.Beatmaps.Timing;
|
||||||
using osu.Game.Rulesets;
|
using osu.Game.Rulesets;
|
||||||
using osu.Game.Rulesets.Objects;
|
using osu.Game.Rulesets.Objects;
|
||||||
|
|
||||||
@ -49,6 +51,9 @@ namespace osu.Game.Beatmaps
|
|||||||
original.BeatmapInfo = original.BeatmapInfo.Clone();
|
original.BeatmapInfo = original.BeatmapInfo.Clone();
|
||||||
original.ControlPointInfo = original.ControlPointInfo.DeepClone();
|
original.ControlPointInfo = original.ControlPointInfo.DeepClone();
|
||||||
|
|
||||||
|
// Used in osu!mania conversion.
|
||||||
|
original.Breaks = new BindableList<BreakPeriod>(original.Breaks);
|
||||||
|
|
||||||
return ConvertBeatmap(original, cancellationToken);
|
return ConvertBeatmap(original, cancellationToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ namespace osu.Game.Beatmaps
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The breaks in this beatmap.
|
/// The breaks in this beatmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
BindableList<BreakPeriod> Breaks { get; }
|
BindableList<BreakPeriod> Breaks { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// All lines from the [Events] section which aren't handled in the encoding process yet.
|
/// All lines from the [Events] section which aren't handled in the encoding process yet.
|
||||||
|
@ -328,7 +328,12 @@ namespace osu.Game.Rulesets.Difficulty
|
|||||||
set => baseBeatmap.Difficulty = value;
|
set => baseBeatmap.Difficulty = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BindableList<BreakPeriod> Breaks => baseBeatmap.Breaks;
|
public BindableList<BreakPeriod> Breaks
|
||||||
|
{
|
||||||
|
get => baseBeatmap.Breaks;
|
||||||
|
set => baseBeatmap.Breaks = value;
|
||||||
|
}
|
||||||
|
|
||||||
public List<string> UnhandledEventLines => baseBeatmap.UnhandledEventLines;
|
public List<string> UnhandledEventLines => baseBeatmap.UnhandledEventLines;
|
||||||
|
|
||||||
public double TotalBreakTime => baseBeatmap.TotalBreakTime;
|
public double TotalBreakTime => baseBeatmap.TotalBreakTime;
|
||||||
|
@ -172,7 +172,11 @@ namespace osu.Game.Screens.Edit
|
|||||||
set => PlayableBeatmap.ControlPointInfo = value;
|
set => PlayableBeatmap.ControlPointInfo = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BindableList<BreakPeriod> Breaks => PlayableBeatmap.Breaks;
|
public BindableList<BreakPeriod> Breaks
|
||||||
|
{
|
||||||
|
get => PlayableBeatmap.Breaks;
|
||||||
|
set => PlayableBeatmap.Breaks = value;
|
||||||
|
}
|
||||||
|
|
||||||
public List<string> UnhandledEventLines => PlayableBeatmap.UnhandledEventLines;
|
public List<string> UnhandledEventLines => PlayableBeatmap.UnhandledEventLines;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user