mirror of
https://github.com/ppy/osu
synced 2025-01-05 05:39:49 +00:00
Add editor override to respect IsolateSavingFromDatabase
This commit is contained in:
parent
47429fb0c6
commit
a8ffc4fc2a
@ -112,7 +112,7 @@ namespace osu.Game.Beatmaps
|
||||
/// The new difficulty will be backed by a <see cref="BeatmapInfo"/> model
|
||||
/// and represented by the returned <see cref="WorkingBeatmap"/>.
|
||||
/// </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,
|
||||
// so that the user doesn't have to fill all of that out again.
|
||||
|
@ -136,6 +136,12 @@ namespace osu.Game.Tests.Visual
|
||||
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 readonly TestBeatmapManager testBeatmapManager;
|
||||
|
Loading…
Reference in New Issue
Block a user