mirror of
https://github.com/ppy/osu.git
synced 2026-06-09 04:53:52 +08:00
Add potential pathway for legacy lookups
This commit is contained in:
@@ -142,7 +142,7 @@ namespace osu.Game.Skinning
|
||||
|
||||
case LegacyManiaSkinConfigurationLookup maniaLookup:
|
||||
if (!AllowManiaSkin)
|
||||
return null;
|
||||
break;
|
||||
|
||||
var result = lookupForMania<TValue>(maniaLookup);
|
||||
if (result != null)
|
||||
@@ -157,7 +157,7 @@ namespace osu.Game.Skinning
|
||||
return genericLookup<TLookup, TValue>(lookup);
|
||||
}
|
||||
|
||||
return null;
|
||||
return fallbackToDefault ? legacyDefaultFallback.GetConfig<TLookup, TValue>(lookup) : null;
|
||||
}
|
||||
|
||||
private IBindable<TValue> lookupForMania<TValue>(LegacyManiaSkinConfigurationLookup maniaLookup)
|
||||
@@ -334,7 +334,7 @@ namespace osu.Game.Skinning
|
||||
{
|
||||
}
|
||||
|
||||
return null;
|
||||
return fallbackToDefault ? legacyDefaultFallback.GetConfig<TLookup, TValue>(lookup) : null;
|
||||
}
|
||||
|
||||
public override Drawable GetDrawableComponent(ISkinComponent component)
|
||||
@@ -516,7 +516,7 @@ namespace osu.Game.Skinning
|
||||
return sample;
|
||||
}
|
||||
|
||||
return null;
|
||||
return fallbackToDefault ? legacyDefaultFallback.GetSample(sampleInfo) : null;
|
||||
}
|
||||
|
||||
private IEnumerable<string> getLegacyLookupNames(HitSampleInfo hitSample)
|
||||
|
||||
Reference in New Issue
Block a user