1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-18 12:37:24 +08:00

Create a new BeatmapSetInfo when setting files

This commit is contained in:
Craftplacer 2020-08-29 10:25:43 +02:00
parent 8f9e090f4c
commit da5853e7eb

View File

@ -60,12 +60,15 @@ namespace osu.Game.Tests.Beatmaps.Formats
using (var reader = new LineBufferedReader(stream))
{
var beatmap = new LegacyBeatmapDecoder { ApplyOffsets = false }.Decode(reader);
beatmap.BeatmapInfo.BeatmapSet.Files = new List<BeatmapSetFileInfo>
beatmap.BeatmapInfo.BeatmapSet = new BeatmapSetInfo
{
new BeatmapSetFileInfo
Files = new List<BeatmapSetFileInfo>
{
Filename = name,
FileInfo = new osu.Game.IO.FileInfo { Hash = name }
new BeatmapSetFileInfo
{
Filename = name,
FileInfo = new osu.Game.IO.FileInfo { Hash = name }
}
}
};