Skip to content

Commit

Permalink
Provide all skins as fallbacks for the purpose of resource lookups
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Sep 30, 2024
1 parent 1280d4c commit 446851d
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions osu.Game/Skinning/SkinManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,14 +253,10 @@ public IEnumerable<ISkin> AllSources
yield return CurrentSkin.Value;

// Skin manager provides default fallbacks.
// This handles cases where a user skin doesn't have the required resources for complete display of
// certain elements.

if (CurrentSkin.Value != DefaultClassicSkin)
yield return DefaultClassicSkin;

if (CurrentSkin.Value != trianglesSkin)
yield return trianglesSkin;
// This handles cases where a user skin doesn't have the required resources for complete display of certain elements, ie. textures.
if (CurrentSkin.Value != DefaultClassicSkin) yield return DefaultClassicSkin;
if (CurrentSkin.Value != argonSkin) yield return argonSkin;
if (CurrentSkin.Value != trianglesSkin) yield return trianglesSkin;
}
}

Expand Down

0 comments on commit 446851d

Please sign in to comment.