1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-12 11:52:57 +08:00

Add comment explaining why direct string lookups are used

This commit is contained in:
Salman Ahmed 2020-08-22 13:07:15 +03:00
parent 7ae45b29db
commit 7e838c8042

View File

@ -160,6 +160,7 @@ namespace osu.Game.Tests.Visual
{
this.extrapolateAnimations = extrapolateAnimations;
// Use a direct string lookup for simplicity, as they're legacy settings and not worth creating enums for them.
legacyFontPrefixes.Add(GetConfig<string, string>("HitCirclePrefix")?.Value ?? "default");
legacyFontPrefixes.Add(GetConfig<string, string>("ScorePrefix")?.Value ?? "score");
legacyFontPrefixes.Add(GetConfig<string, string>("ComboPrefix")?.Value ?? "score");