1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 08:07:24 +08:00

Fix beatmap conversion tests not properly constructing decoder

This commit is contained in:
smoogipoo 2018-03-05 14:53:57 +09:00
parent d3092a3003
commit 49b8670dfc

View File

@ -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)