Reduce calls to LoadTrack by implicitly running on test/dummy classes

This commit is contained in:
Dean Herbert
2022-07-28 17:58:13 +09:00
parent 628a30193f
commit a21aee4e9c
7 changed files with 14 additions and 12 deletions

View File

@ -44,6 +44,10 @@ namespace osu.Game.Beatmaps
}, audio)
{
this.textures = textures;
// We are guaranteed to have a virtual track.
// To ease usability, ensure the track is available from point of construction.
LoadTrack();
}
protected override IBeatmap GetBeatmap() => new Beatmap();