1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-02 07:29:54 +08:00

Reword fallback instantiation handling comment to hopefully explain things better

This commit is contained in:
Dean Herbert
2022-09-18 18:20:28 +09:00
Unverified
parent d0b8409de5
commit 6a06a5b1b5
+2 -1
View File
@@ -53,7 +53,8 @@ namespace osu.Game.Skinning
}
catch
{
// This defaults to triangles to catch the case where a user has a modified triangles skin.
// Since the class was renamed from "DefaultSkin" to "TrianglesSkin", the instantiation would fail
// for user modified skins. This aims to amicably handle that.
// If we ever add more default skins in the future this will need some kind of proper migration rather than
// a single catch.
return new TrianglesSkin(this, resources);