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