mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Set version of not-configured skins to latest only
This commit is contained in:
@ -10,7 +10,7 @@ namespace osu.Game.Skinning
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class DefaultSkinConfiguration : SkinConfiguration
|
public class DefaultSkinConfiguration : SkinConfiguration
|
||||||
{
|
{
|
||||||
public DefaultSkinConfiguration()
|
public DefaultSkinConfiguration(string version)
|
||||||
{
|
{
|
||||||
ComboColours.AddRange(new[]
|
ComboColours.AddRange(new[]
|
||||||
{
|
{
|
||||||
@ -20,7 +20,12 @@ namespace osu.Game.Skinning
|
|||||||
new Color4(121, 9, 13, 255)
|
new Color4(121, 9, 13, 255)
|
||||||
});
|
});
|
||||||
|
|
||||||
ConfigDictionary.Add(@"Version", "latest");
|
ConfigDictionary["Version"] = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DefaultSkinConfiguration()
|
||||||
|
: this("1")
|
||||||
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ namespace osu.Game.Skinning
|
|||||||
using (StreamReader reader = new StreamReader(stream))
|
using (StreamReader reader = new StreamReader(stream))
|
||||||
Configuration = new LegacySkinDecoder().Decode(reader);
|
Configuration = new LegacySkinDecoder().Decode(reader);
|
||||||
else
|
else
|
||||||
Configuration = new DefaultSkinConfiguration();
|
Configuration = new DefaultSkinConfiguration("latest");
|
||||||
|
|
||||||
if (storage != null)
|
if (storage != null)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user