mirror of
https://github.com/ppy/osu
synced 2024-12-14 02:46:27 +00:00
Fix TestCasePlayer regression.
This commit is contained in:
parent
aef0eb49a1
commit
d19a7813f3
@ -38,7 +38,7 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
{
|
||||
base.Reset();
|
||||
|
||||
if (beatmap?.Track == null)
|
||||
//if (beatmap?.Track == null)
|
||||
{
|
||||
var objects = new List<HitObject>();
|
||||
|
||||
@ -60,7 +60,16 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
|
||||
Beatmap b = new Beatmap
|
||||
{
|
||||
HitObjects = objects
|
||||
HitObjects = objects,
|
||||
BeatmapInfo = new BeatmapInfo
|
||||
{
|
||||
Metadata = new BeatmapMetadata
|
||||
{
|
||||
Artist = @"Unknown",
|
||||
Title = @"Sample Beatmap",
|
||||
Author = @"peppy",
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
decoder.Process(b);
|
||||
|
@ -113,6 +113,8 @@ namespace osu.Game.Beatmaps
|
||||
public WorkingBeatmap(Beatmap beatmap)
|
||||
{
|
||||
this.beatmap = beatmap;
|
||||
BeatmapInfo = beatmap.BeatmapInfo;
|
||||
BeatmapSetInfo = beatmap.BeatmapInfo.BeatmapSet;
|
||||
}
|
||||
|
||||
public WorkingBeatmap(BeatmapInfo beatmapInfo, BeatmapSetInfo beatmapSetInfo, BeatmapDatabase database, bool withStoryboard = false)
|
||||
|
Loading…
Reference in New Issue
Block a user