mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 22:33:05 +08:00
Disallow transferring track from test WorkingBeatmap
s which have local stores
This commit is contained in:
parent
c78d90ccbd
commit
cef99fd020
@ -59,6 +59,13 @@ namespace osu.Game.Tests
|
||||
|
||||
protected override Track GetBeatmapTrack() => trackStore.Get(firstAudioFile);
|
||||
|
||||
public override bool TryTransferTrack(WorkingBeatmap target)
|
||||
{
|
||||
// Our track comes from a local track store that's disposed on finalizer,
|
||||
// therefore it's unsafe to transfer it to another working beatmap.
|
||||
return false;
|
||||
}
|
||||
|
||||
private string firstAudioFile
|
||||
{
|
||||
get
|
||||
|
@ -373,6 +373,13 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
protected override Track GetBeatmapTrack() => track;
|
||||
|
||||
public override bool TryTransferTrack(WorkingBeatmap target)
|
||||
{
|
||||
// Our track comes from a local track store that's disposed on finalizer,
|
||||
// therefore it's unsafe to transfer it to another working beatmap.
|
||||
return false;
|
||||
}
|
||||
|
||||
public class TrackVirtualStore : AudioCollectionManager<Track>, ITrackStore
|
||||
{
|
||||
private readonly IFrameBasedClock referenceClock;
|
||||
|
Loading…
Reference in New Issue
Block a user