Add editor override to respect IsolateSavingFromDatabase

This commit is contained in:
Bartłomiej Dach 2022-01-23 19:58:21 +01:00
parent 47429fb0c6
commit a8ffc4fc2a
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497
2 changed files with 7 additions and 1 deletions

View File

@ -112,7 +112,7 @@ namespace osu.Game.Beatmaps
/// The new difficulty will be backed by a <see cref="BeatmapInfo"/> model /// The new difficulty will be backed by a <see cref="BeatmapInfo"/> model
/// and represented by the returned <see cref="WorkingBeatmap"/>. /// and represented by the returned <see cref="WorkingBeatmap"/>.
/// </summary> /// </summary>
public WorkingBeatmap CreateNewBlankDifficulty(BeatmapSetInfo beatmapSetInfo, RulesetInfo rulesetInfo) public virtual WorkingBeatmap CreateNewBlankDifficulty(BeatmapSetInfo beatmapSetInfo, RulesetInfo rulesetInfo)
{ {
// fetch one of the existing difficulties to copy timing points and metadata from, // fetch one of the existing difficulties to copy timing points and metadata from,
// so that the user doesn't have to fill all of that out again. // so that the user doesn't have to fill all of that out again.

View File

@ -136,6 +136,12 @@ namespace osu.Game.Tests.Visual
return new TestWorkingBeatmapCache(this, audioManager, resources, storage, defaultBeatmap, host); return new TestWorkingBeatmapCache(this, audioManager, resources, storage, defaultBeatmap, host);
} }
public override WorkingBeatmap CreateNewBlankDifficulty(BeatmapSetInfo beatmapSetInfo, RulesetInfo rulesetInfo)
{
// don't actually care about properly creating a difficulty for this context.
return TestBeatmap;
}
private class TestWorkingBeatmapCache : WorkingBeatmapCache private class TestWorkingBeatmapCache : WorkingBeatmapCache
{ {
private readonly TestBeatmapManager testBeatmapManager; private readonly TestBeatmapManager testBeatmapManager;