mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
Create a new BeatmapSetInfo when setting files
This commit is contained in:
@ -60,13 +60,16 @@ namespace osu.Game.Tests.Beatmaps.Formats
|
|||||||
using (var reader = new LineBufferedReader(stream))
|
using (var reader = new LineBufferedReader(stream))
|
||||||
{
|
{
|
||||||
var beatmap = new LegacyBeatmapDecoder { ApplyOffsets = false }.Decode(reader);
|
var beatmap = new LegacyBeatmapDecoder { ApplyOffsets = false }.Decode(reader);
|
||||||
beatmap.BeatmapInfo.BeatmapSet.Files = new List<BeatmapSetFileInfo>
|
beatmap.BeatmapInfo.BeatmapSet = new BeatmapSetInfo
|
||||||
|
{
|
||||||
|
Files = new List<BeatmapSetFileInfo>
|
||||||
{
|
{
|
||||||
new BeatmapSetFileInfo
|
new BeatmapSetFileInfo
|
||||||
{
|
{
|
||||||
Filename = name,
|
Filename = name,
|
||||||
FileInfo = new osu.Game.IO.FileInfo { Hash = name }
|
FileInfo = new osu.Game.IO.FileInfo { Hash = name }
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var beatmapSkin = new LegacyBeatmapSkin(beatmap.BeatmapInfo, beatmaps_resource_store, null);
|
var beatmapSkin = new LegacyBeatmapSkin(beatmap.BeatmapInfo, beatmaps_resource_store, null);
|
||||||
|
Reference in New Issue
Block a user