1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 18:42:56 +08:00

Improve naming around the config lookup with fallback private method.

Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
Jesse Myers 2021-01-13 16:49:14 -05:00 committed by GitHub
parent 8b95817f7a
commit 562634dfd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,10 +93,10 @@ namespace osu.Game.Skinning
return fallbackSource?.GetConfig<TLookup, TValue>(lookup);
}
private IBindable<TValue> getBindable<TLookup, TValue>(TLookup lookup, bool bindableReturnCheck)
private IBindable<TValue> lookupWithFallback<TLookup, TValue>(TLookup lookup, bool canUseSkinLookup)
{
var bindable = skin.GetConfig<TLookup, TValue>(lookup);
if (bindable != null && bindableReturnCheck)
if (bindable != null && canUseSkinLookup)
return bindable;
else
return fallbackSource?.GetConfig<TLookup, TValue>(lookup);