Fix infinite loop on default skin (it can't have a skin.ini)

This commit is contained in:
Dean Herbert 2021-10-20 17:34:09 +09:00
parent 9e6e41d7c0
commit 68c01fc204

View File

@ -186,7 +186,7 @@ namespace osu.Game.Skinning
// By this point, the metadata in SkinInfo will be correct.
// Regardless of whether this is an import or not, let's write the skin.ini if non-existing or non-matching.
// This is (weirdly) done inside ComputeHash to avoid adding a new method to handle this case. After switching to realm it can be moved into another place.
if (skinIniSourcedName != item.Name)
if (instance is LegacySkin && skinIniSourcedName != item.Name)
updateSkinIniMetadata(item);
return base.ComputeHash(item, reader);