1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 13:32:54 +08:00

Cache also as IBindable

This commit is contained in:
Dean Herbert 2018-06-29 19:25:28 +09:00
parent 6d6fcc953b
commit 182ac80881

View File

@ -146,7 +146,9 @@ namespace osu.Game
}
dependencies.CacheAs(this);
dependencies.CacheAs(ruleset);
dependencies.CacheAs<IBindable<RulesetInfo>>(ruleset);
// bind config int to database RulesetInfo
configRuleset = LocalConfig.GetBindable<int>(OsuSetting.Ruleset);