mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Create a new BeatmapSetInfo when setting files
This commit is contained in:
@ -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 }
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user