From ed964cfbe9c38d78dd0365c681aca857e728ff87 Mon Sep 17 00:00:00 2001 From: Eris Date: Wed, 22 Dec 2021 20:41:55 +0100 Subject: [PATCH] Fixed crash when trying to tutorial --- HitScoreVisualizer/Installers/HsvAppInstaller.cs | 2 ++ HitScoreVisualizer/Installers/HsvGameInstaller.cs | 13 ------------- HitScoreVisualizer/Plugin.cs | 1 - 3 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 HitScoreVisualizer/Installers/HsvGameInstaller.cs diff --git a/HitScoreVisualizer/Installers/HsvAppInstaller.cs b/HitScoreVisualizer/Installers/HsvAppInstaller.cs index e8e6ca6..2581eb7 100644 --- a/HitScoreVisualizer/Installers/HsvAppInstaller.cs +++ b/HitScoreVisualizer/Installers/HsvAppInstaller.cs @@ -19,6 +19,8 @@ public override void InstallBindings() Container.BindInstance(_hsvConfig); Container.BindInterfacesAndSelfTo().AsSingle(); Container.BindInterfacesAndSelfTo().AsSingle(); + Container.Bind().AsSingle(); + Container.BindInterfacesTo().AsSingle(); } } diff --git a/HitScoreVisualizer/Installers/HsvGameInstaller.cs b/HitScoreVisualizer/Installers/HsvGameInstaller.cs deleted file mode 100644 index 93273ab..0000000 --- a/HitScoreVisualizer/Installers/HsvGameInstaller.cs +++ /dev/null @@ -1,13 +0,0 @@ -using HitScoreVisualizer.Services; -using Zenject; - -namespace HitScoreVisualizer.Installers -{ - public class HsvGameInstaller : Installer - { - public override void InstallBindings() - { - Container.Bind().AsSingle(); - } - } -} \ No newline at end of file diff --git a/HitScoreVisualizer/Plugin.cs b/HitScoreVisualizer/Plugin.cs index d326bca..21b2658 100644 --- a/HitScoreVisualizer/Plugin.cs +++ b/HitScoreVisualizer/Plugin.cs @@ -25,7 +25,6 @@ public void Init(Logger logger, Config config, PluginMetadata pluginMetadata, Ze zenject.Install(Location.App, config.Generated()); zenject.Install(Location.Menu); - zenject.Install(Location.Player); } } } \ No newline at end of file