Fix missed `InstantiationInfo` setter usages

This commit is contained in:
Bartłomiej Dach 2021-05-12 23:34:25 +02:00
parent d31fa20e92
commit a6aec6e007
2 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,7 @@
using JetBrains.Annotations;
using osu.Framework.IO.Stores;
using osu.Game.Extensions;
using osu.Game.IO;
using osuTK.Graphics;
@ -35,7 +36,7 @@ public DefaultLegacySkin(SkinInfo skin, IResourceStore<byte[]> storage, IStorage
ID = SkinInfo.CLASSIC_SKIN, // this is temporary until database storage is decided upon.
Name = "osu!classic",
Creator = "team osu!",
InstantiationInfo = typeof(DefaultLegacySkin).AssemblyQualifiedName,
InstantiationInfo = typeof(DefaultLegacySkin).GetInvariantInstantiationInfo()
};
}
}

View File

@ -6,6 +6,7 @@
using osu.Framework.IO.Stores;
using osu.Game.Configuration;
using osu.Game.Database;
using osu.Game.Extensions;
using osu.Game.IO;
namespace osu.Game.Skinning
@ -50,7 +51,7 @@ public virtual Skin CreateInstance(IResourceStore<byte[]> legacyDefaultResources
ID = DEFAULT_SKIN,
Name = "osu!lazer",
Creator = "team osu!",
InstantiationInfo = typeof(DefaultSkin).AssemblyQualifiedName,
InstantiationInfo = typeof(DefaultSkin).GetInvariantInstantiationInfo()
};
public bool Equals(SkinInfo other) => other != null && ID == other.ID;