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