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:
parent
8f9e090f4c
commit
da5853e7eb
@ -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 }
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user