mirror of
https://github.com/ppy/osu
synced 2025-02-21 04:57:11 +00:00
Fix beatmap conversion tests not properly constructing decoder
This commit is contained in:
parent
d3092a3003
commit
49b8670dfc
@ -109,10 +109,9 @@ namespace osu.Game.Tests.Beatmaps
|
||||
|
||||
private Beatmap getBeatmap(string name)
|
||||
{
|
||||
var decoder = new LegacyBeatmapDecoder();
|
||||
using (var resStream = openResource($"{resource_namespace}.{name}.osu"))
|
||||
using (var stream = new StreamReader(resStream))
|
||||
return decoder.DecodeBeatmap(stream);
|
||||
return Decoder.GetDecoder(stream).DecodeBeatmap(stream);
|
||||
}
|
||||
|
||||
private Stream openResource(string name)
|
||||
|
Loading…
Reference in New Issue
Block a user