Add GetStream to IWorkingBeatmap

This is necessary to obtain the filesize of the audio and background files.
This commit is contained in:
Naxess
2021-04-17 17:47:13 +02:00
parent 448574e7e6
commit 400f8b3938
9 changed files with 21 additions and 0 deletions

View File

@ -4,6 +4,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.IO;
using osu.Framework.Audio.Track;
using osu.Framework.Graphics.Textures;
using osu.Framework.Logging;
@ -142,6 +143,8 @@ namespace osu.Game.Beatmaps
return null;
}
}
public override Stream GetStream(string storagePath) => resources.Files.GetStream(storagePath);
}
}
}