Add support for creating new blank difficulties

This commit is contained in:
Bartłomiej Dach
2022-01-23 17:49:17 +01:00
parent b613aedeb8
commit dc96c4888b
7 changed files with 95 additions and 11 deletions

View File

@ -58,7 +58,16 @@ namespace osu.Game.Database
if (existing != null)
copyChangesToRealm(beatmap, existing);
else
d.Beatmaps.Add(beatmap);
{
var newBeatmap = new BeatmapInfo
{
ID = beatmap.ID,
BeatmapSet = d,
Ruleset = d.Realm.Find<RulesetInfo>(beatmap.Ruleset.ShortName)
};
d.Beatmaps.Add(newBeatmap);
copyChangesToRealm(beatmap, newBeatmap);
}
}
});