Add back actually needed change

*no comment*
This commit is contained in:
Salman Ahmed 2021-05-20 00:03:10 +03:00
parent d8efcc0793
commit 3d99b89633
1 changed files with 4 additions and 2 deletions

View File

@ -12,6 +12,8 @@ namespace osu.Game.Tests.Visual
[TestFixture]
public abstract class LegacySkinPlayerTestScene : PlayerTestScene
{
protected LegacySkin LegacySkin { get; private set; }
private ISkinSource legacySkinSource;
protected override TestPlayer CreatePlayer(Ruleset ruleset) => new SkinProvidingPlayer(legacySkinSource);
@ -19,8 +21,8 @@ public abstract class LegacySkinPlayerTestScene : PlayerTestScene
[BackgroundDependencyLoader]
private void load(OsuGameBase game, SkinManager skins)
{
var legacySkin = new DefaultLegacySkin(new NamespacedResourceStore<byte[]>(game.Resources, "Skins/Legacy"), skins);
legacySkinSource = new SkinProvidingContainer(legacySkin);
LegacySkin = new DefaultLegacySkin(new NamespacedResourceStore<byte[]>(game.Resources, "Skins/Legacy"), skins);
legacySkinSource = new SkinProvidingContainer(LegacySkin);
}
public class SkinProvidingPlayer : TestPlayer