Skip to content

Commit

Permalink
Guess it should be possible to get the config directly?
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Apr 23, 2022
1 parent d15a263 commit becb9bb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ public class NoteStylePreview : Container

protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
{
var configCache = parent.Get<IRulesetConfigCache>();
var config = (KaraokeRulesetConfigManager)configCache.GetConfigFor(new KaraokeRuleset());
var config = Dependencies.Get<KaraokeRulesetConfigManager>();
var dependencies = new DependencyContainer(base.CreateChildDependencies(parent));
dependencies.Cache(new KaraokeSessionStatics(config, null));

Expand Down

0 comments on commit becb9bb

Please sign in to comment.