mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Disallow transferring track from test WorkingBeatmap
s which have local stores
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user