Skip to content

Commit

Permalink
Fixed config switching being broken
Browse files Browse the repository at this point in the history
Regression caused by the fix for the tutorial scene crash
  • Loading branch information
ErisApps committed Dec 23, 2021
1 parent b918d50 commit af70425
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
3 changes: 1 addition & 2 deletions HitScoreVisualizer/Installers/HsvAppInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace HitScoreVisualizer.Installers
{
internal class HsvAppInstaller : Installer<HSVConfig, HsvAppInstaller>
internal sealed class HsvAppInstaller : Installer
{
private readonly HSVConfig _hsvConfig;

Expand All @@ -19,7 +19,6 @@ public override void InstallBindings()
Container.BindInstance(_hsvConfig);
Container.BindInterfacesAndSelfTo<ConfigProvider>().AsSingle();
Container.BindInterfacesAndSelfTo<BloomFontProvider>().AsSingle();
Container.Bind<JudgmentService>().AsSingle();

Container.BindInterfacesTo<FlyingScoreEffectPatch>().AsSingle();
}
Expand Down
13 changes: 13 additions & 0 deletions HitScoreVisualizer/Installers/HsvGameInstaller.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using HitScoreVisualizer.Services;
using Zenject;

namespace HitScoreVisualizer.Installers
{
internal sealed class HsvGameInstaller : Installer
{
public override void InstallBindings()
{
Container.Bind<JudgmentService>().AsSingle();
}
}
}
2 changes: 1 addition & 1 deletion HitScoreVisualizer/Installers/HsvMenuInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace HitScoreVisualizer.Installers
{
internal class HsvMenuInstaller : Installer<HsvMenuInstaller>
internal sealed class HsvMenuInstaller : Installer
{
public override void InstallBindings()
{
Expand Down
1 change: 1 addition & 0 deletions HitScoreVisualizer/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public void Init(Logger logger, Config config, PluginMetadata pluginMetadata, Ze

zenject.Install<HsvAppInstaller>(Location.App, config.Generated<HSVConfig>());
zenject.Install<HsvMenuInstaller>(Location.Menu);
zenject.Install<HsvGameInstaller>(Location.Tutorial | Location.Player);
}
}
}

0 comments on commit af70425

Please sign in to comment.