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.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
@ -326,6 +327,8 @@ namespace osu.Game.Beatmaps
protected virtual ISkin GetSkin() => new DefaultSkin();
private readonly RecyclableLazy<ISkin> skin;
public abstract Stream GetStream(string storagePath);
public class RecyclableLazy<T>
{
private Lazy<T> lazy;