1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-23 03:59:52 +08:00

Include json files in skin hashing

This covers the new layout storage we are doing.
This commit is contained in:
Dean Herbert
2021-10-20 14:05:32 +09:00
Unverified
parent 789c715f13
commit fa542f2547
+2 -2
View File
@@ -50,7 +50,7 @@ namespace osu.Game.Skinning
public override IEnumerable<string> HandledExtensions => new[] { ".osk" };
protected override string[] HashableFileTypes => new[] { ".ini" };
protected override string[] HashableFileTypes => new[] { ".ini", ".json" };
protected override string ImportFromStablePath => "Skins";
@@ -140,7 +140,7 @@ namespace osu.Game.Skinning
// This function can be run on fresh import or save. The logic here ensures a skin.ini file is in a good state for both operations.
// LegacySkin will parse the skin.ini and populate `Skin.Configuration` during construction above.
bool hasSkinIni = string.IsNullOrEmpty(instance.Configuration.SkinInfo.Name);
bool hasSkinIni = !string.IsNullOrEmpty(instance.Configuration.SkinInfo.Name);
if (hasSkinIni)
{